]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
*** empty log message ***
authorNiels Möller <nisse@lysator.liu.se>
Thu, 31 Oct 2002 18:40:09 +0000 (19:40 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 31 Oct 2002 18:40:09 +0000 (19:40 +0100)
Rev: src/nettle/ChangeLog:1.139

ChangeLog

index 62edcb849bbecb16c60b806aef6a6281b12a81b1..c81ee244d1c16561ca1b079f5a9e546cec64d2c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,59 @@
+2002-10-31  Niels Möller  <niels@s3.kth.se>
+
+       * examples/sexp-conv.c(sexp_put_list_start): Deleted function. 
+       (sexp_put_list_end): Likewise.
+       (sexp_put_display_start): Likewise.
+       (sexp_put_display_end): Likewise.
+       (sexp_puts): Likewise.
+
+       * examples/sexp-conv.c (sexp_get_quoted_string): Deleted function.
+       Merged with sexp_get_String.
+       (sexp_get_hex_string): Likewise.
+       (sexp_get_base64_string): Likewise.
+       (sexp_get_string): Do hex and base64 decoding.
+       
+       * examples/sexp-conv.c (enum sexp_char_type): New enum, for end
+       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..
+
+       * examples/sexp-conv-test: Added test for transport mode input.
+
+       * examples/sexp-conv.c (sexp_get_char): Use the nettle_armor
+       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.
+
 2002-10-30  Niels Möller  <nisse@cuckoo.hack.org>
 
        * Makefile.am: Added base16 files.