]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
23 years ago(test_main): Updated test, one leading
Niels Möller [Fri, 15 Nov 2002 08:11:18 +0000 (09:11 +0100)] 
(test_main): Updated test, one leading
zero is needed in the private key expression. In verbose mode,
print the generated keys.

Rev: src/nettle/testsuite/rsa2sexp-test.c:1.3

23 years ago(test_bignum): Use nettle_mpz_init_set_str_256_s.
Niels Möller [Fri, 15 Nov 2002 08:08:42 +0000 (09:08 +0100)] 
(test_bignum): Use nettle_mpz_init_set_str_256_s.
(test_size): New function.
(test_main): Test size computation and formatting of negative
numbers.

Rev: src/nettle/testsuite/bignum-test.c:1.3

23 years ago* bignum.c (nettle_mpz_sizeinbase_256_u): New name, was
Niels Möller [Fri, 15 Nov 2002 08:06:40 +0000 (09:06 +0100)] 
* bignum.c (nettle_mpz_sizeinbase_256_u): New name, was
nettle_mpz_sizeinbase_256. Updated all callers.

Rev: src/nettle/bignum-random.c:1.2
Rev: src/nettle/dsa-keygen.c:1.4
Rev: src/nettle/dsa.c:1.3
Rev: src/nettle/pgp-encode.c:1.3
Rev: src/nettle/rsa-compat.c:1.5
Rev: src/nettle/rsa-encrypt.c:1.3
Rev: src/nettle/rsa_md5.c:1.7
Rev: src/nettle/rsa_sha1.c:1.7

23 years ago(nettle_mpz_set_sexp): Use
Niels Möller [Fri, 15 Nov 2002 08:03:26 +0000 (09:03 +0100)] 
(nettle_mpz_set_sexp): Use
nettle_mpz_set_str_256_s, to handle negative numbers correctly.

Rev: src/nettle/sexp2bignum.c:1.2

23 years ago(sexp_iterator_get_uint32): New function.
Niels Möller [Fri, 15 Nov 2002 08:02:30 +0000 (09:02 +0100)] 
(sexp_iterator_get_uint32): New function.

Rev: src/nettle/sexp.c:1.12
Rev: src/nettle/sexp.h:1.9

23 years ago(sexp_vformat): For %i, output a leading zero when
Niels Möller [Fri, 15 Nov 2002 08:01:07 +0000 (09:01 +0100)] 
(sexp_vformat): For %i, output a leading zero when
needed to get a correct, positive, sign. For %b, use
nettle_mpz_sizeinbase_256_s, to handle negative numbers properly.

Rev: src/nettle/sexp-format.c:1.4

23 years ago(nettle_mpz_sizeinbase_256_s): New function.
Niels Möller [Fri, 15 Nov 2002 07:57:42 +0000 (08:57 +0100)] 
(nettle_mpz_sizeinbase_256_s): New function.
(nettle_mpz_sizeinbase_256_u): New name, was
nettle_mpz_sizeinbase_256.
(nettle_mpz_to_octets): New function.
(nettle_mpz_get_str_256): Handle negative numbers.
(nettle_mpz_from_octets): New function.
(nettle_mpz_set_str_256_u): New name, was nettle_mpz_set_str_256.
(nettle_mpz_init_set_str_256_u): New name, was
nettle_mpz_init_set_str_256.
(nettle_mpz_set_str_256_s): New function, handling negative two's
complement numbers.
(nettle_mpz_init_set_str_256_s): And an init variant.

Rev: src/nettle/bignum.c:1.5
Rev: src/nettle/bignum.h:1.6

23 years ago*** empty log message ***
Niels Möller [Wed, 13 Nov 2002 17:26:51 +0000 (18:26 +0100)] 
*** empty log message ***

Rev: src/nettle/TODO:1.4

23 years agoAdded GPL blurb.
Niels Möller [Mon, 11 Nov 2002 06:53:57 +0000 (07:53 +0100)] 
Added GPL blurb.

Rev: src/nettle/tools/sexp-conv.c:1.4

23 years ago*** empty log message ***
Niels Möller [Sun, 10 Nov 2002 16:30:51 +0000 (17:30 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.148

23 years agoUse input files without any trailing
Niels Möller [Sun, 10 Nov 2002 16:30:35 +0000 (17:30 +0100)] 
Use input files without any trailing
newline character, in order to stress the end of file handling.

Rev: src/nettle/testsuite/sexp-conv-test:1.3

23 years ago* tools/sexp-conv.c (sexp_get_token_string): Fixed end of file
Niels Möller [Sun, 10 Nov 2002 16:27:54 +0000 (17:27 +0100)] 
* tools/sexp-conv.c (sexp_get_token_string): Fixed end of file
handling.
(sexp_get_string): Fixed end of encoding/end of file handling.
(parse_options): Check for negative width and complain.

Rev: src/nettle/tools/sexp-conv.c:1.3

23 years ago*** empty log message ***
Niels Möller [Sun, 10 Nov 2002 13:56:49 +0000 (14:56 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.147
Rev: src/nettle/tools/.cvsignore:1.2

23 years agoUse supplied getopt.
Niels Möller [Sun, 10 Nov 2002 13:46:53 +0000 (14:46 +0100)] 
Use supplied getopt.
(werror): New function.
(sexp_output_hash_init): New function.
(sexp_put_char): Made base64 linebreaking configurable.
Implemented hashing.
(sexp_put_code_start, sexp_put_code_end): Don't output any
delimiters here.
(sexp_put_string): Output base64 delimiters.
(sexp_put_digest): New function.
(sexp_convert_item): Output transport delimiters.
(sexp_convert_file): Deleted function, folded with main.
(parse_options): New function.
(main): Implemented --hash and --once, needed by lsh-authorize.

Rev: src/nettle/tools/sexp-conv.c:1.2

23 years ago* sexp.h (struct sexp_iterator): New field start.
Niels Möller [Sun, 10 Nov 2002 13:38:50 +0000 (14:38 +0100)] 
* sexp.h (struct sexp_iterator): New field start.

* sexp.c (sexp_iterator_subexpr): New function.
(sexp_iterator_parse): Initialize ITERATOR->start.

Rev: src/nettle/sexp.c:1.11
Rev: src/nettle/sexp.h:1.8

23 years ago(sexp_vformat): Abort if format string contains
Niels Möller [Sun, 10 Nov 2002 13:36:54 +0000 (14:36 +0100)] 
(sexp_vformat): Abort if format string contains
unhandled characters.

Rev: src/nettle/sexp-format.c:1.3

23 years ago*** empty log message ***
Niels Möller [Fri, 8 Nov 2002 09:07:10 +0000 (10:07 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.146

23 years agoComment update on nettle-openssl.c.
Niels Möller [Fri, 8 Nov 2002 09:06:54 +0000 (10:06 +0100)] 
Comment update on nettle-openssl.c.

Rev: src/nettle/nettle-internal.h:1.3

23 years ago(des_ecb3_encrypt): Don't use struct initialization
Niels Möller [Fri, 8 Nov 2002 09:06:40 +0000 (10:06 +0100)] 
(des_ecb3_encrypt): Don't use struct initialization
(c89 doesn't allow non-constant initializers). Reported by James
Ralston.
(des_ede3_cbc_encrypt): Likewise.

Rev: src/nettle/des-compat.c:1.7

23 years agoMoved from the top-level directory.
Niels Möller [Fri, 8 Nov 2002 09:05:20 +0000 (10:05 +0100)] 
Moved from the top-level directory.
Should *not* be included in the nettle library.

Rev: src/nettle/Makefile.am:1.53
Rev: src/nettle/examples/Makefile.am:1.14
Rev: src/nettle/examples/nettle-openssl.c:1.1
Rev: src/nettle/nettle-openssl.c:1.2(DEAD)

23 years ago(test_dsa_key): Bugfix for renamed DSA
James Ralston [Fri, 8 Nov 2002 07:46:50 +0000 (08:46 +0100)] 
(test_dsa_key): Bugfix for renamed DSA
constant (noted by James Ralston).

Rev: src/nettle/ChangeLog:1.145
Rev: src/nettle/testsuite/testutils.c:1.19

23 years ago*** empty log message ***
Niels Möller [Thu, 7 Nov 2002 13:48:28 +0000 (14:48 +0100)] 
*** empty log message ***

Rev: src/nettle/tools/.cvsignore:1.1

23 years ago*** empty log message ***
Niels Möller [Thu, 7 Nov 2002 10:19:38 +0000 (11:19 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.144

23 years agoCopied new version rom lsh/src/testsuite.
Niels Möller [Thu, 7 Nov 2002 10:19:34 +0000 (11:19 +0100)] 
Copied new version rom lsh/src/testsuite.
This version handles test scripts located in $srcdir.

Rev: src/nettle/testsuite/run-tests:1.6

23 years ago* examples/Makefile.am (AM_CFLAGS): We need -I$(top_srcdir).
Niels Möller [Thu, 7 Nov 2002 10:17:31 +0000 (11:17 +0100)] 
* examples/Makefile.am (AM_CFLAGS): We need -I$(top_srcdir).
* tools/Makefile.am (AM_CFLAGS): Likewise.
* testsuite/Makefile.am (AM_CFLAGS): Likewise.

Rev: src/nettle/examples/Makefile.am:1.13
Rev: src/nettle/testsuite/Makefile.am:1.31
Rev: src/nettle/tools/Makefile.am:1.2

23 years ago*** empty log message ***
Niels Möller [Thu, 7 Nov 2002 08:33:18 +0000 (09:33 +0100)] 
*** empty log message ***

Rev: src/nettle/.cvsignore:1.11
Rev: src/nettle/ChangeLog:1.143

23 years ago* Makefile.am (SUBDIRS): Added tools.
Niels Möller [Thu, 7 Nov 2002 08:33:06 +0000 (09:33 +0100)] 
* Makefile.am (SUBDIRS): Added tools.
(libnettle_a_SOURCES): Added sexp-transport-format.c,
sexp2bignum.c, sexp2dsa.c.

Rev: src/nettle/Makefile.am:1.52

23 years ago(dsa_keypair_from_sexp_alist, dsa_keypair_from_sexp):
Niels Möller [Thu, 7 Nov 2002 08:31:02 +0000 (09:31 +0100)] 
(dsa_keypair_from_sexp_alist, dsa_keypair_from_sexp):
New file, new functions.

Rev: src/nettle/sexp2dsa.c:1.1

23 years ago(rsa_keypair_to_sexp): %s -> %z renaming.
Niels Möller [Thu, 7 Nov 2002 08:30:24 +0000 (09:30 +0100)] 
(rsa_keypair_to_sexp): %s -> %z renaming.

Rev: src/nettle/rsa2sexp.c:1.3

23 years ago(sexp_transport_iterator_first): Fixed bug,
Niels Möller [Thu, 7 Nov 2002 08:28:36 +0000 (09:28 +0100)] 
(sexp_transport_iterator_first): Fixed bug,
length was mishandled.

Rev: src/nettle/sexp-transport.c:1.3

23 years ago(sexp_transport_format,
Niels Möller [Thu, 7 Nov 2002 08:27:30 +0000 (09:27 +0100)] 
(sexp_transport_format,
sexp_transport_vformat): New file, new functions.

Rev: src/nettle/sexp-transport-format.c:1.1

23 years ago(sexp_format): Return length of output. Allow
Niels Möller [Thu, 7 Nov 2002 08:26:30 +0000 (09:26 +0100)] 
(sexp_format): Return length of output. Allow
buffer == NULL, and onyl compute the needed length in this case.
Renamed %s to %z. New format specifiers %s, %i, and %l.
(sexp_vformat): New function.
(format_prefix): Rewrote to not use snprintf.

Rev: src/nettle/sexp-format.c:1.2
Rev: src/nettle/sexp.h:1.7

23 years ago* sexp2rsa.c (rsa_keypair_from_sexp): New limit argument. Use
Niels Möller [Thu, 7 Nov 2002 08:20:08 +0000 (09:20 +0100)] 
* sexp2rsa.c (rsa_keypair_from_sexp): New limit argument. Use
nettle_mpz_set_sexp.

* sexp2bignum.c (nettle_mpz_set_sexp): New file, and new function.
Moved from sexp2rsa.c:get_value.

Rev: src/nettle/rsa.h:1.17
Rev: src/nettle/sexp2rsa.c:1.8

23 years ago(dsa_generate_keypair): Added some newlines to
Niels Möller [Thu, 7 Nov 2002 08:19:08 +0000 (09:19 +0100)] 
(dsa_generate_keypair): Added some newlines to
progress display. Use DSA_P_MIN_BITS.

Rev: src/nettle/dsa-keygen.c:1.3

23 years ago(DSA_MIN_P_BITS): New constant (was DSA_MINIMUM_BITS).
Niels Möller [Thu, 7 Nov 2002 08:18:24 +0000 (09:18 +0100)] 
(DSA_MIN_P_BITS): New constant (was DSA_MINIMUM_BITS).
(DSA_Q_OCTETS, DSA_Q_BITS): New constants.
(dsa_keypair_from_sexp_alist, dsa_keypair_from_sexp): New
prototypes.

Rev: src/nettle/dsa.h:1.4

23 years agoOutput tools/Makefile.
Niels Möller [Thu, 7 Nov 2002 08:16:30 +0000 (09:16 +0100)] 
Output tools/Makefile.

Rev: src/nettle/configure.ac:1.14

23 years ago(nettle_mpz_set_sexp): New file, and new function.
Niels Möller [Thu, 7 Nov 2002 08:16:01 +0000 (09:16 +0100)] 
(nettle_mpz_set_sexp): New file, and new function.
Moved from sexp2rsa.c:get_value.

Rev: src/nettle/bignum.h:1.5
Rev: src/nettle/sexp2bignum.c:1.1

23 years ago(read_rsa_key): New limit argument in
Niels Möller [Thu, 7 Nov 2002 08:13:47 +0000 (09:13 +0100)] 
(read_rsa_key): New limit argument in
call of rsa_keypair_from_sexp_alist.

Rev: src/nettle/examples/io.c:1.3

23 years ago*** empty log message ***
Niels Möller [Thu, 7 Nov 2002 08:13:15 +0000 (09:13 +0100)] 
*** empty log message ***

Rev: src/nettle/examples/sexp-conv-test:1.7(DEAD)
Rev: src/nettle/examples/sexp-conv.c:1.16(DEAD)

23 years ago* examples/Makefile.am (noinst_PROGRAMS): Removed sexp-conv.
Niels Möller [Thu, 7 Nov 2002 08:13:04 +0000 (09:13 +0100)] 
* examples/Makefile.am (noinst_PROGRAMS): Removed sexp-conv.

Rev: src/nettle/examples/Makefile.am:1.12

23 years agoNew files.
Niels Möller [Thu, 7 Nov 2002 08:12:17 +0000 (09:12 +0100)] 
New files.

Rev: src/nettle/tools/Makefile.am:1.1
Rev: src/nettle/tools/getopt.c:1.1
Rev: src/nettle/tools/getopt.h:1.1
Rev: src/nettle/tools/getopt1.c:1.1
Rev: src/nettle/tools/sexp-conv.c:1.1

23 years ago(TS_SH): New variable. Added
Niels Möller [Thu, 7 Nov 2002 08:11:29 +0000 (09:11 +0100)] 
(TS_SH): New variable. Added
sexp-conv-test.

Rev: src/nettle/testsuite/Makefile.am:1.30

23 years ago(LDUP): New macro.
Niels Möller [Thu, 7 Nov 2002 08:11:00 +0000 (09:11 +0100)] 
(LDUP): New macro.

Rev: src/nettle/testsuite/testutils.h:1.15

23 years ago(test_main): New limit argument in
Niels Möller [Thu, 7 Nov 2002 08:10:38 +0000 (09:10 +0100)] 
(test_main): New limit argument in
call of rsa_keypair_from_sexp_alist.

Rev: src/nettle/testsuite/sexp2rsa-test.c:1.3

23 years ago(test_main): Added test for lengths with
Niels Möller [Thu, 7 Nov 2002 08:09:21 +0000 (09:09 +0100)] 
(test_main): Added test for lengths with
more than one digit. Added tests for transport mode decoding.

Rev: src/nettle/testsuite/sexp-test.c:1.9

23 years ago(test_main): Added tests for %i and
Niels Möller [Thu, 7 Nov 2002 08:08:05 +0000 (09:08 +0100)] 
(test_main): Added tests for %i and
%l.

Rev: src/nettle/testsuite/sexp-format-test.c:1.2

23 years agoMoved test from examples directory.
Niels Möller [Thu, 7 Nov 2002 08:07:00 +0000 (09:07 +0100)] 
Moved test from examples directory.
Updated path to sexp-conv, now in ../tools/sexp-conv.

Rev: src/nettle/testsuite/sexp-conv-test:1.2

23 years agoMoved test from examples directory.
Niels Möller [Thu, 7 Nov 2002 07:57:02 +0000 (08:57 +0100)] 
Moved test from examples directory.

Rev: src/nettle/testsuite/sexp-conv-test:1.1

23 years ago* sexp-format.c, sexp_format.c: Renamed sexp_format.c to
Niels Möller [Sun, 3 Nov 2002 11:31:49 +0000 (12:31 +0100)] 
* sexp-format.c, sexp_format.c: Renamed sexp_format.c to
sexp-format.c.
* Makefile.am (libnettle_a_SOURCES): Renamed sexp_format.c to
sexp-format.c.

Rev: src/nettle/Makefile.am:1.51

23 years agorenamed file
Niels Möller [Sun, 3 Nov 2002 10:37:25 +0000 (11:37 +0100)] 
renamed file

Rev: src/nettle/sexp-format.c:1.1
Rev: src/nettle/sexp_format.c:1.4(DEAD)

23 years ago*** empty log message ***
Niels Möller [Sat, 2 Nov 2002 23:58:19 +0000 (00:58 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.142

23 years ago* examples/Makefile.am: Don't set CFLAGS or CPPFLAGS explicitly,
Niels Möller [Sat, 2 Nov 2002 23:48:37 +0000 (00:48 +0100)] 
* examples/Makefile.am: Don't set CFLAGS or CPPFLAGS explicitly,
let automake handle that.
* testsuite/Makefile.am: Likewise.

Rev: src/nettle/testsuite/Makefile.am:1.29

23 years agoDon't set CFLAGS or CPPFLAGS explicitly,
Niels Möller [Sat, 2 Nov 2002 23:48:05 +0000 (00:48 +0100)] 
Don't set CFLAGS or CPPFLAGS explicitly,
let automake handle that.

Rev: src/nettle/examples/Makefile.am:1.11

23 years ago(rsa_keypair_from_sexp_alist): New function.
Niels Möller [Sat, 2 Nov 2002 23:47:01 +0000 (00:47 +0100)] 
(rsa_keypair_from_sexp_alist): New function.
(rsa_keypair_from_sexp): Use it.

Rev: src/nettle/rsa.h:1.16
Rev: src/nettle/sexp2rsa.c:1.7

23 years ago*** empty log message ***
Niels Möller [Fri, 1 Nov 2002 10:20:45 +0000 (11:20 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.141

23 years ago* examples/Makefile.am (LDADD): Use -lnettle, instead of an
Niels Möller [Fri, 1 Nov 2002 10:19:10 +0000 (11:19 +0100)] 
* examples/Makefile.am (LDADD): Use -lnettle, instead of an
explicit filename libnettle.a, so that we will use the shared
library, if it exists.
(AM_LDFLAGS): Added -L.., so we can find -lnettle.
(run-tests): Set LD_LIBRARY_PATH to ../.lib, when running the
testsuite.
* testsuite/Makefile.am: Similar changes.

Rev: src/nettle/examples/Makefile.am:1.10
Rev: src/nettle/testsuite/Makefile.am:1.28

23 years ago(LIBOBJS): Put @LIBOBJS@ into the make variable
Niels Möller [Fri, 1 Nov 2002 10:14:27 +0000 (11:14 +0100)] 
(LIBOBJS): Put @LIBOBJS@ into the make variable
LIBOBJS.
(CLEANFILES): Delete libnettle.so.
(clean-local): Delete the .lib linkfarm.
($(SHLIBFORLINK)): When building libnettle.so, create a link from
.lib/$SHLIBSONAME. Needed at runtime, for the testsuite.

Rev: src/nettle/Makefile.am:1.50

23 years ago*** empty log message ***
Niels Möller [Fri, 1 Nov 2002 08:50:23 +0000 (09:50 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.140

23 years agoFixed definitions using SHLIBMAJOR and SHLIBMINOR.
James Ralston [Fri, 1 Nov 2002 08:50:18 +0000 (09:50 +0100)] 
Fixed definitions using SHLIBMAJOR and SHLIBMINOR.
Also AC_SUBST SHLIBMAJOR and SHLIBMINOR. Reported by James
Ralston.

Rev: src/nettle/configure.ac:1.13

23 years ago*** empty log message ***
Niels Möller [Thu, 31 Oct 2002 18:40:09 +0000 (19:40 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.139

23 years ago* examples/sexp-conv.c(sexp_put_list_start): Deleted function.
Niels Möller [Thu, 31 Oct 2002 18:38:57 +0000 (19:38 +0100)] 
* 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.

Rev: src/nettle/examples/sexp-conv.c:1.15

23 years agoSome reorder of the functions.
Niels Möller [Thu, 31 Oct 2002 18:23:46 +0000 (19:23 +0100)] 
Some reorder of the functions.

Rev: src/nettle/examples/sexp-conv.c:1.14

23 years ago* examples/sexp-conv.c (sexp_get_quoted_string): Deleted function.
Niels Möller [Thu, 31 Oct 2002 18:17:45 +0000 (19:17 +0100)] 
* 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.

Rev: src/nettle/examples/sexp-conv.c:1.13

23 years agoAdded test for transport mode input.
Niels Möller [Thu, 31 Oct 2002 17:58:03 +0000 (18:58 +0100)] 
Added test for transport mode input.

Rev: src/nettle/examples/sexp-conv-test:1.6

23 years ago* examples/sexp-conv.c (enum sexp_char_type): New enum, for end
Niels Möller [Thu, 31 Oct 2002 17:57:47 +0000 (18:57 +0100)] 
* 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..

Rev: src/nettle/examples/sexp-conv.c:1.12

23 years ago(sexp_get_char): Use the nettle_armor
Niels Möller [Thu, 31 Oct 2002 10:42:12 +0000 (11:42 +0100)] 
(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.

Rev: src/nettle/examples/sexp-conv.c:1.11

23 years ago*** empty log message ***
Niels Möller [Wed, 30 Oct 2002 22:13:47 +0000 (23:13 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.138

23 years ago* Makefile.am: Added base16 files.
Niels Möller [Wed, 30 Oct 2002 22:13:33 +0000 (23:13 +0100)] 
* Makefile.am: Added base16 files.

Rev: src/nettle/Makefile.am:1.49

23 years agoNew tests for transport output.
Niels Möller [Wed, 30 Oct 2002 22:12:55 +0000 (23:12 +0100)] 
New tests for transport output.

Rev: src/nettle/examples/sexp-conv-test:1.5

23 years agoDeleted hex functions, moved to Nettle's
Niels Möller [Wed, 30 Oct 2002 22:10:52 +0000 (23:10 +0100)] 
Deleted hex functions, moved to Nettle's
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

23 years ago(test_armor): Allocate a larger buffer
Niels Möller [Wed, 30 Oct 2002 20:59:04 +0000 (21:59 +0100)] 
(test_armor): Allocate a larger buffer
CHECK, to make decode_update happy. Updated to new base64
conventions.

Rev: src/nettle/testsuite/testutils.c:1.18

23 years ago(test_main): Fixed overlap test to not
Niels Möller [Wed, 30 Oct 2002 20:56:05 +0000 (21:56 +0100)] 
(test_main): Fixed overlap test to not
change the base64 before decoding. Updated to new base64
conventions.

Rev: src/nettle/testsuite/base64-test.c:1.4

23 years ago*** empty log message ***
Niels Möller [Wed, 30 Oct 2002 20:55:07 +0000 (21:55 +0100)] 
*** empty log message ***

Rev: src/nettle/testsuite/.cvsignore:1.21

23 years ago* testsuite/Makefile.am (TS_PROGS): Added base16-test.
Niels Möller [Wed, 30 Oct 2002 20:54:59 +0000 (21:54 +0100)] 
* testsuite/Makefile.am (TS_PROGS): Added base16-test.

* testsuite/base16-test.c: New test.

Rev: src/nettle/testsuite/Makefile.am:1.27
Rev: src/nettle/testsuite/base16-test.c:1.1

23 years ago(sexp_transport_iterator_first): Updated to new
Niels Möller [Wed, 30 Oct 2002 20:54:13 +0000 (21:54 +0100)] 
(sexp_transport_iterator_first): Updated to new
conventions for base64_decode_update and base64_decode_final.

Rev: src/nettle/sexp-transport.c:1.2

23 years agoUpdated ascii armor declarations. New declaration
Niels Möller [Wed, 30 Oct 2002 20:50:20 +0000 (21:50 +0100)] 
Updated ascii armor declarations. New declaration
for nettle_base16.

Rev: src/nettle/nettle-meta.h:1.9

23 years ago* base64-decode.c (base64_decode_single): Return -1 on error.
Niels Möller [Wed, 30 Oct 2002 20:48:01 +0000 (21:48 +0100)] 
* base64-decode.c (base64_decode_single): Return -1 on error.
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

23 years agoNew files.
Niels Möller [Wed, 30 Oct 2002 20:43:29 +0000 (21:43 +0100)] 
New files.

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

23 years ago*** empty log message ***
Niels Möller [Mon, 28 Oct 2002 22:07:45 +0000 (23:07 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.137

23 years ago(struct hex_decode_ctx): New hex decoding
Niels Möller [Mon, 28 Oct 2002 22:07:35 +0000 (23:07 +0100)] 
(struct hex_decode_ctx): New hex decoding
functions.
(sexp_get_raw_char): New function.
(sexp_get_char): Use sexp_get_raw_char.

Rev: src/nettle/examples/sexp-conv.c:1.9

23 years ago*** empty log message ***
Niels Möller [Sat, 26 Oct 2002 21:27:45 +0000 (23:27 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.136

23 years ago(sexp_put_length): Bugfix, don't output any
Niels Möller [Sat, 26 Oct 2002 21:27:29 +0000 (23:27 +0200)] 
(sexp_put_length): Bugfix, don't output any
leading zero.
(main): Implemented -s option.

Rev: src/nettle/examples/sexp-conv.c:1.8

23 years agoTest for echo -n vs echo '\c'. Added a
Niels Möller [Sat, 26 Oct 2002 21:25:14 +0000 (23:25 +0200)] 
Test for echo -n vs echo '\c'. Added a
few tests for canonical output.

Rev: src/nettle/examples/sexp-conv-test:1.4

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 15:17:11 +0000 (17:17 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.135

23 years ago(struct sexp_output): Added coding attribute.
Niels Möller [Fri, 25 Oct 2002 15:17:04 +0000 (17:17 +0200)] 
(struct sexp_output): Added coding attribute.
(sexp_put_char): Use output->coding.
(sexp_put_base64_start): Likewise.
(sexp_put_base64_end): Likewise.

Rev: src/nettle/examples/sexp-conv.c:1.7

23 years ago(struct sexp_input): Deleted the mode from
Niels Möller [Fri, 25 Oct 2002 13:50:20 +0000 (15:50 +0200)] 
(struct sexp_input): Deleted the mode from
the state, that should be passed as argument to relevant
functions. Instead, introduces enum sexp_coding, to say if base64
coding is in effect.

Rev: src/nettle/examples/sexp-conv.c:1.6

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 13:47:39 +0000 (15:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.134

23 years ago(base64_decode_single): Simplified, got rid of
Niels Möller [Fri, 25 Oct 2002 13:47:31 +0000 (15:47 +0200)] 
(base64_decode_single): Simplified, got rid of
the done variable.

Rev: src/nettle/base64-decode.c:1.3

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 08:44:26 +0000 (10:44 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.133

23 years ago(sexp_put_newline): Return void, die on
Niels Möller [Fri, 25 Oct 2002 08:44:17 +0000 (10:44 +0200)] 
(sexp_put_newline): Return void, die on
error.
(sexp_put_char, sexp_put_data, sexp_puts, sexp_put_length,
sexp_put_base64_start, sexp_put_base64_end, sexp_put_string,
sexp_put_list_start, sexp_put_list_end, sexp_put_display_start,
sexp_put_display_end, sexp_convert_string, sexp_convert_list,
sexp_skip_token): Likewise.
(sexp_convert_item): Die on error.

Rev: src/nettle/examples/sexp-conv.c:1.5

23 years agoDoesn't need echo -n anymore.
Niels Möller [Thu, 24 Oct 2002 20:09:52 +0000 (22:09 +0200)] 
Doesn't need echo -n anymore.

Rev: src/nettle/examples/sexp-conv-test:1.3

23 years ago(die): New function.
Niels Möller [Thu, 24 Oct 2002 20:09:07 +0000 (22:09 +0200)] 
(die): New function.
(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

23 years ago*** empty log message ***
Niels Möller [Wed, 23 Oct 2002 21:44:32 +0000 (23:44 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.132

23 years ago(TS_PROGS): Added sexp-conv-test.
Niels Möller [Wed, 23 Oct 2002 20:12:55 +0000 (22:12 +0200)] 
(TS_PROGS): Added sexp-conv-test.

Rev: src/nettle/examples/Makefile.am:1.9

23 years agoIgnore files matching test*.
Niels Möller [Wed, 23 Oct 2002 20:12:08 +0000 (22:12 +0200)] 
Ignore files matching test*.

Rev: src/nettle/examples/.cvsignore:1.5

23 years agoBetter tests.
Niels Möller [Wed, 23 Oct 2002 20:11:53 +0000 (22:11 +0200)] 
Better tests.

Rev: src/nettle/examples/sexp-conv-test:1.2

23 years ago(sexp_input_init): Initialize input->string
Niels Möller [Wed, 23 Oct 2002 20:11:37 +0000 (22:11 +0200)] 
(sexp_input_init): Initialize input->string
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

23 years ago*** empty log message ***
Niels Möller [Tue, 22 Oct 2002 20:47:20 +0000 (22:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.131

23 years ago*** empty log message ***
Niels Möller [Tue, 22 Oct 2002 20:47:10 +0000 (22:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.130
Rev: src/nettle/examples/.cvsignore:1.4

23 years agoNew test program.
Niels Möller [Tue, 22 Oct 2002 20:47:04 +0000 (22:47 +0200)] 
New test program.

Rev: src/nettle/examples/sexp-conv-test:1.1