Skip to content
Snippets Groups Projects
  1. Oct 30, 2002
    • 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
  2. Oct 28, 2002
  3. Oct 26, 2002
  4. Oct 25, 2002
  5. Oct 24, 2002
    • 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
  6. Oct 23, 2002
    • Niels Möller's avatar
      *** empty log message *** · bbfd3a89
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.132
      bbfd3a89
    • Niels Möller's avatar
      (TS_PROGS): Added sexp-conv-test. · 98a1d30f
      Niels Möller authored
      Rev: src/nettle/examples/Makefile.am:1.9
      98a1d30f
    • Niels Möller's avatar
      Ignore files matching test*. · fd5dfb2a
      Niels Möller authored
      Rev: src/nettle/examples/.cvsignore:1.5
      fd5dfb2a
    • Niels Möller's avatar
      Better tests. · 3b65d057
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.2
      3b65d057
    • Niels Möller's avatar
      (sexp_input_init): Initialize input->string · 30dca9e6
      Niels Möller authored
      properly.
      (sexp_get_char): Fixed non-transport case.
      (sexp_get_quoted_char): Fixed default case.
      (sexp_get_token): Loop over sexp_get_char (needed for handling of
      white space). Don't modify input->level. Fixed the code that skips
      comments.
      (sexp_put_char): Fixed off-by-one bug in assertion.
      (sexp_put_string): Fixed escape handling for output of quoted
      strings.
      (sexp_convert_list): Prettier output, hanging indent after the
      first list element.
      (sexp_skip_token): New function.
      (sexp_convert_item): Use sexp_skip_token to skip the end of a
      "[display-type]".
      
      Rev: src/nettle/examples/sexp-conv.c:1.3
      30dca9e6
  7. Oct 22, 2002
  8. Oct 21, 2002
Loading