1. 31 Oct, 2002 4 commits
    • Niels Möller's avatar
      Added test for transport mode input. · 6b1d6abf
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.6
    • Niels Möller's avatar
      * examples/sexp-conv.c (enum sexp_char_type): New enum, for end · fb9cd7d7
      Niels Möller authored
      markers in the input strem.
      (struct sexp_input): Deleted LEVEL attribute. Deleted all usage of
      (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
      (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
    • Niels Möller's avatar
      (sexp_get_char): Use the nettle_armor · 2049dbed
      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
    • Niels Möller's avatar
      Added Austrian mirror. · 28f745b5
      Niels Möller authored
      Rev: doc/index.html:1.3
  2. 30 Oct, 2002 12 commits
    • Niels Möller's avatar
      *** empty log message *** · 578681f0
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.138
    • Niels Möller's avatar
      * Makefile.am: Added base16 files. · ae5f5893
      Niels Möller authored
      Rev: src/nettle/Makefile.am:1.49
    • Niels Möller's avatar
      New tests for transport output. · 892c90d6
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.5
    • Niels Möller's avatar
      Deleted hex functions, moved to Nettle's · bb847280
      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
      (sexp_convert_list): New argument MODE_OUT.
      (sexp_convert_file): Likewise.
      (sexp_convert_item): Likewise. Also handle output in transport
      (match_argument): Simple string comparison.
      (main): Adapted to above changes.
      Rev: src/nettle/examples/sexp-conv.c:1.10
    • Niels Möller's avatar
      (test_armor): Allocate a larger buffer · dbe80bc1
      Niels Möller authored
      CHECK, to make decode_update happy. Updated to new base64
      Rev: src/nettle/testsuite/testutils.c:1.18
    • Niels Möller's avatar
      (test_main): Fixed overlap test to not · b51a3803
      Niels Möller authored
      change the base64 before decoding. Updated to new base64
      Rev: src/nettle/testsuite/base64-test.c:1.4
    • Niels Möller's avatar
      *** empty log message *** · 9f93d031
      Niels Möller authored
      Rev: src/nettle/testsuite/.cvsignore:1.21
    • Niels Möller's avatar
      * testsuite/Makefile.am (TS_PROGS): Added base16-test. · 696f4d45
      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
    • Niels Möller's avatar
      (sexp_transport_iterator_first): Updated to new · 80575e82
      Niels Möller authored
      conventions for base64_decode_update and base64_decode_final.
      Rev: src/nettle/sexp-transport.c:1.2
    • Niels Möller's avatar
      Updated ascii armor declarations. New declaration · 878e1faf
      Niels Möller authored
      for nettle_base16.
      Rev: src/nettle/nettle-meta.h:1.9
    • Niels Möller's avatar
      * base64-decode.c (base64_decode_single): Return -1 on error. · 4e9385d1
      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
    • Niels Möller's avatar
      New files. · c31e934c
      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
  3. 28 Oct, 2002 2 commits
  4. 26 Oct, 2002 3 commits
  5. 25 Oct, 2002 7 commits
  6. 24 Oct, 2002 2 commits
    • Niels Möller's avatar
      Doesn't need echo -n anymore. · 5724f1f2
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.3
    • Niels Möller's avatar
      (die): New function. · f12ea3a6
      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
  7. 23 Oct, 2002 7 commits
  8. 22 Oct, 2002 3 commits