diff --git a/.cvsignore b/.cvsignore index fa1962064a4fa121757e6a12e6e5d2fc566a6264..ff20c6475b20e2f667960e20cc5e65e88ebee4aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,6 +1,7 @@ *.tar.gz *.tar.gz.asc .deps +.lib Makefile Makefile.in aclocal.m4 diff --git a/.gitignore b/.gitignore index 70be823336880295ae2fea55434208aa3ab4d462..6cc4b3ad6f9fbec1c62bd3629f9fb1001118f7f1 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ core /*.tar.gz /*.tar.gz.asc /.deps +/.lib /Makefile /Makefile.in /aclocal.m4 diff --git a/ChangeLog b/ChangeLog index 96f5cf3214f6233a70a2cc94e0ced63a35a25a06..5b9c830b2bd39cfa3dce074d7be78e49b791d041 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,73 @@ +2002-11-07 Niels Möller <nisse@cuckoo.hack.org> + + * Makefile.am (SUBDIRS): Added tools. + (libnettle_a_SOURCES): Added sexp-transport-format.c, + sexp2bignum.c, sexp2dsa.c. + + * sexp2dsa.c (dsa_keypair_from_sexp_alist, dsa_keypair_from_sexp): + New file, new functions. + + * rsa2sexp.c (rsa_keypair_to_sexp): %s -> %z renaming. + + * sexp-transport.c (sexp_transport_iterator_first): Fixed bug, + length was mishandled. + + * sexp-transport-format.c (sexp_transport_format, + sexp_transport_vformat): New file, new functions. + + * sexp-format.c (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. + + * sexp2rsa.c (rsa_keypair_from_sexp): New limit argument. Use + nettle_mpz_set_sexp. + + * dsa-keygen.c (dsa_generate_keypair): Added some newlines to + progress display. Use DSA_P_MIN_BITS. + + * dsa.h (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. + + * configure.ac: Output tools/Makefile. + + * sexp2bignum.c (nettle_mpz_set_sexp): New file, and new function. + Moved from sexp2rsa.c:get_value. + + * examples/io.c (read_rsa_key): New limit argument in + call of rsa_keypair_from_sexp_alist. + + * examples/Makefile.am (noinst_PROGRAMS): Removed sexp-conv. + + * tools/sexp-conv.c: Moved file from examples directory. + + * testsuite/Makefile.am (TS_SH): New variable. Added + sexp-conv-test. + + * testsuite/testutils.h (LDUP): New macro. + + * testsuite/sexp2rsa-test.c (test_main): New limit argument in + call of rsa_keypair_from_sexp_alist. + + * testsuite/sexp-test.c (test_main): Added test for lengths with + more than one digit. Added tests for transport mode decoding. + + * testsuite/sexp-format-test.c (test_main): Added tests for %i and + %l. + + * testsuite/sexp-conv-test: Moved test from examples directory. + Updated path to sexp-conv, now in ../tools/sexp-conv. + 2002-11-03 Niels Möller <nisse@cuckoo.hack.org> + * 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. + * examples/Makefile.am: Don't set CFLAGS or CPPFLAGS explicitly, let automake handle that. * testsuite/Makefile.am: Likewise.