]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Undo dsa-compat.h name mangling for testsuite.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 28 Mar 2014 17:42:15 +0000 (18:42 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 28 Mar 2014 17:42:15 +0000 (18:42 +0100)
ChangeLog
testsuite/dsa-keygen-test.c
testsuite/testutils.h

index b069d6303dd2feb7aa0b11116f20aefde2b596c4..887d4791b82e18d58cf7ddb542dcc71999e65e52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-03-28  Niels Möller  <nisse@lysator.liu.se>
 
+       * testsuite/dsa-keygen-test.c (test_main): Explicitly use
+       dsa_compat_generate_keypair.
+       * testsuite/testutils.h: Undo dsa-compat.h name mangling.
+
        * dsa-keygen.c (dsa_generate_keypair): New interface, generating
        only a keypair, and no new parameters.
        * dsa-compat-keygen.c (dsa_compat_generate_keypair): New file.
index 87b30f99ab0cde6ebc1da14d54a728f3e5aafbaf..25757c95fb606606c1b466a38cb70f298cc0d05a 100644 (file)
@@ -23,7 +23,7 @@ test_main(void)
   knuth_lfib_init(&lfib, 13);
 
   params = (struct dsa_params *) &pub;
-  ASSERT (dsa_generate_keypair(&pub, &key,
+  ASSERT (dsa_compat_generate_keypair(&pub, &key,
                               &lfib,
                               (nettle_random_func *) knuth_lfib_random,
                               NULL, verbose ? progress : NULL,
@@ -32,7 +32,7 @@ test_main(void)
   test_dsa_key(params, pub.y, key.x, 160);
   test_dsa160(&pub, &key, NULL);
 
-  ASSERT (dsa_generate_keypair(&pub, &key,
+  ASSERT (dsa_compat_generate_keypair(&pub, &key,
                               &lfib,
                               (nettle_random_func *) knuth_lfib_random,
                               NULL, verbose ? progress : NULL,
@@ -41,7 +41,7 @@ test_main(void)
   test_dsa_key(params, pub.y, key.x, 256);
   test_dsa256(&pub, &key, NULL);
   
-  ASSERT (dsa_generate_keypair(&pub, &key,
+  ASSERT (dsa_compat_generate_keypair(&pub, &key,
                               &lfib,
                               (nettle_random_func *) knuth_lfib_random,
                               NULL, verbose ? progress : NULL,
index 7b0798337e0d19bc903534dd71bd83d4c56473f4..3e9f20d83c2a9e235eafc754436875db5f5d68f9 100644 (file)
 # include "ecc-internal.h"
 # include "ecdsa.h"
 # include "gmp-glue.h"
+
+/* Undo some dsa-compat name mangling */
+#undef dsa_generate_keypair
+#define dsa_generate_keypair nettle_dsa_generate_keypair
 #endif
 
 #include "nettle-meta.h"
@@ -198,11 +202,13 @@ test_dsa256(const struct dsa_public_key *pub,
            const struct dsa_private_key *key,
            const struct dsa_signature *expected);
 
+#if 0
 void
 test_dsa_sign(const struct dsa_public_key *pub,
              const struct dsa_private_key *key,
              const struct nettle_hash *hash,
              const struct dsa_signature *expected);
+#endif
 
 void
 test_dsa_verify(const struct dsa_params *params,