1. 02 Nov, 2002 1 commit
  2. 01 Nov, 2002 5 commits
  3. 31 Oct, 2002 7 commits
    • Niels Möller's avatar
      *** empty log message *** · 46e6c7cc
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.139
      46e6c7cc
    • Niels Möller's avatar
      * examples/sexp-conv.c(sexp_put_list_start): Deleted function. · 869cd834
      Niels Möller authored
      (sexp_put_list_end): Likewise.
      (sexp_put_display_start): Likewise.
      (sexp_put_display_end): Likewise.
      (sexp_puts): Likewise.
      
      Rev: src/nettle/examples/sexp-conv.c:1.15
      869cd834
    • Niels Möller's avatar
      Some reorder of the functions. · 4b11c57a
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv.c:1.14
      4b11c57a
    • Niels Möller's avatar
      * examples/sexp-conv.c (sexp_get_quoted_string): Deleted function. · f1c70f33
      Niels Möller authored
      Merged with sexp_get_String.
      (sexp_get_hex_string): Likewise.
      (sexp_get_base64_string): Likewise.
      (sexp_get_string): Do hex and base64 decoding.
      
      Rev: src/nettle/examples/sexp-conv.c:1.13
      f1c70f33
    • Niels Möller's avatar
      Added test for transport mode input. · bfb06a36
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.6
      bfb06a36
    • Niels Möller's avatar
      * examples/sexp-conv.c (enum sexp_char_type): New enum, for end · 21703d22
      Niels Möller authored
      markers in the input strem.
      (struct sexp_input): Deleted LEVEL attribute. Deleted all usage of
      it.
      (sexp_get_raw_char): Use INPUT->c and INPUT->ctype to store
      results. Deleted OUT argument.
      (sexp_get_char): Likewise. Also removed the
      INPUT->coding->decode_final call, for symmetry.
      (sexp_input_end_coding): Call INPUT->coding->decode_final.
      (sexp_next_char): New function.
      (sexp_push_char): New function.
      (sexp_get_token_char): Deleted function.
      (sexp_get_quoted_char): Simplified. Deleted output argument.
      (sexp_get_quoted_string): Simplified.
      (sexp_get_base64_string): Likewise.
      (sexp_get_token_string): Likewise.
      (sexp_get_string_length): Skip the character that terminates the
      string.
      (sexp_get_token): Cleared upp calling conventions. Always consume
      the final character of the token.
      (sexp_convert_list): Take responsibility for converting the start
      and end of the list.
      (sexp_convert_file): Call sexp_get_char first, to get the token
      reading started.
      (sexp_convert_item): Cleared up calling conventions. Should be
      called with INPUT->token being the first token of the expression,
      and returns with INPUT->token being the final token of the
      expression. Return value changed to void..
      
      Rev: src/nettle/examples/sexp-conv.c:1.12
      21703d22
    • Niels Möller's avatar
      (sexp_get_char): Use the nettle_armor · 648e5a29
      Niels Möller authored
      interface for decoding.
      (sexp_input_start_coding): New function.
      (sexp_input_end_coding): New function.
      (sexp_get_base64_string): Rewrote to use sexp_input_start_coding
      and sexp_input_end_coding.
      (sexp_get_token): Generate SEXP_TRANSPORT_START tokens.
      (sexp_convert_list): Lists are ended only by SEXP_LIST_END.
      (sexp_convert_item): Implemented transport mode, using
      sexp_input_start_coding and sexp_input_end_coding.
      
      Rev: src/nettle/examples/sexp-conv.c:1.11
      648e5a29
  4. 30 Oct, 2002 12 commits
    • Niels Möller's avatar
      *** empty log message *** · ed48326f
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.138
      ed48326f
    • Niels Möller's avatar
      * Makefile.am: Added base16 files. · 217a6051
      Niels Möller authored
      Rev: src/nettle/Makefile.am:1.49
      217a6051
    • Niels Möller's avatar
      New tests for transport output. · a096a2b2
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.5
      a096a2b2
    • Niels Möller's avatar
      Deleted hex functions, moved to Nettle's · b7b49518
      Niels Möller authored
      base16 files.
      (struct sexp_output): Represent the current encoding as a
      nettle_armor pointer and a state struct.
      (sexp_output_init): Deleted MODE argument. Now passed to functions
      that need it.
      (sexp_get_char): Updated to new base64 conventions.
      (sexp_get_base64_string): Likewise.
      (sexp_put_raw_char): New function.
      (sexp_put_newline): Use sexp_put_raw_char.
      (sexp_put_char): Use nettle_armor interface for encoding data.
      Use OUTPUT->coding_indent for line breaking, so the INDENT
      argument was deleted.
      (sexp_put_code_start): New function, replacing sexp_put_base64_start.
      (sexp_put_code_end): New function, replacing sexp_put_base64_end.
      (sexp_put_data): Deleted argument INDENT.
      (sexp_puts): Likewise.
      (sexp_put_length): Likewise.
      (sexp_put_list_start): Likewise.
      (sexp_put_list_end): Likewise.
      (sexp_put_display_start): Likewise.
      (sexp_put_display_end): Likewise.
      (sexp_put_string): Likewise. Also changed base64 handling.
      (sexp_convert_string): Deleted argument INDENT. New argument
      MODE_OUT.
      (sexp_convert_list): New argument MODE_OUT.
      (sexp_convert_file): Likewise.
      (sexp_convert_item): Likewise. Also handle output in transport
      mode.
      (match_argument): Simple string comparison.
      (main): Adapted to above changes.
      
      Rev: src/nettle/examples/sexp-conv.c:1.10
      b7b49518
    • Niels Möller's avatar
      (test_armor): Allocate a larger buffer · 0507d532
      Niels Möller authored
      CHECK, to make decode_update happy. Updated to new base64
      conventions.
      
      Rev: src/nettle/testsuite/testutils.c:1.18
      0507d532
    • Niels Möller's avatar
      (test_main): Fixed overlap test to not · 23e3c11d
      Niels Möller authored
      change the base64 before decoding. Updated to new base64
      conventions.
      
      Rev: src/nettle/testsuite/base64-test.c:1.4
      23e3c11d
    • Niels Möller's avatar
      *** empty log message *** · da0c74b6
      Niels Möller authored
      Rev: src/nettle/testsuite/.cvsignore:1.21
      da0c74b6
    • Niels Möller's avatar
      * testsuite/Makefile.am (TS_PROGS): Added base16-test. · ca4ec785
      Niels Möller authored
      * testsuite/base16-test.c: New test.
      
      Rev: src/nettle/testsuite/Makefile.am:1.27
      Rev: src/nettle/testsuite/base16-test.c:1.1
      ca4ec785
    • Niels Möller's avatar
      (sexp_transport_iterator_first): Updated to new · e0292d52
      Niels Möller authored
      conventions for base64_decode_update and base64_decode_final.
      
      Rev: src/nettle/sexp-transport.c:1.2
      e0292d52
    • Niels Möller's avatar
      Updated ascii armor declarations. New declaration · aa4c823b
      Niels Möller authored
      for nettle_base16.
      
      Rev: src/nettle/nettle-meta.h:1.9
      aa4c823b
    • Niels Möller's avatar
      * base64-decode.c (base64_decode_single): Return -1 on error. · 62e431b4
      Niels Möller authored
      Also keep track of the number of padding characters ('=') seen.
      (base64_decode_update): New argument dst_length. Return -1 on error.
      (base64_decode_status):  Renamed function...
      (base64_decode_final): ... to this.
      
      * base64.h (struct base64_decode_ctx): Deleted STATUS attribute.
      Added PADDING attribute.
      
      Rev: src/nettle/base64-decode.c:1.4
      Rev: src/nettle/base64.h:1.11
      62e431b4
    • Niels Möller's avatar
      New files. · e3e5eb76
      Niels Möller authored
      Rev: src/nettle/base16-decode.c:1.1
      Rev: src/nettle/base16-encode.c:1.1
      Rev: src/nettle/base16-meta.c:1.1
      Rev: src/nettle/base16.h:1.1
      e3e5eb76
  5. 28 Oct, 2002 2 commits
  6. 26 Oct, 2002 3 commits
  7. 25 Oct, 2002 7 commits
  8. 24 Oct, 2002 2 commits
    • Niels Möller's avatar
      Doesn't need echo -n anymore. · e264bd2b
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.3
      e264bd2b
    • Niels Möller's avatar
      (die): New function. · 4da2bc6a
      Niels Möller authored
      (struct sexp_input): Deleted field ITEM.
      (sexp_get_char): Die on failure, never return -1.
      (sexp_get_quoted_char): Likewise.
      (sexp_get_quoted_string): Die on failure, no returned value.
      (sexp_get_base64_string): Likewise.
      (sexp_get_token_string): Likewise.
      (sexp_get_string): Likewise.
      (sexp_get_string_length): Likewise.
      (sexp_get_token): Likewise.
      (sexp_convert_string): Adapted to sexp_get_token.
      (sexp_convert_list): Likewise.
      (sexp_convert_file): New function.
      (main): Use sexp_convert_file.
      
      Rev: src/nettle/examples/sexp-conv.c:1.4
      4da2bc6a
  9. 23 Oct, 2002 1 commit