summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2007-04-13 00:33:37 +0000
committerMarcus Brinkmann <mb@g10code.com>2007-04-13 00:33:37 +0000
commit1a01b7c5acab14e14abc81f83ed94c46260046ee (patch)
tree74ec43064823cc9a1a61515745c2b899281a6c4c /cipher
parentff4e15a4cd5ea2de038d19093dd0bc11f844dc57 (diff)
downloadlibgcrypt-1a01b7c5acab14e14abc81f83ed94c46260046ee.tar.gz
2007-04-13 Marcus Brinkmann <marcus@g10code.de>
* ecc.c (ecc_generate): Avoid compiler warning for unused argument DUMMY. (ecc_verify): Avoid compiler warning for unused arguments CMP and OPAQUEV.
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog7
-rw-r--r--cipher/ecc.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 747a5c2a..f0865a61 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,10 @@
+2007-04-13 Marcus Brinkmann <marcus@g10code.de>
+
+ * ecc.c (ecc_generate): Avoid compiler warning for unused argument
+ DUMMY.
+ (ecc_verify): Avoid compiler warning for unused arguments CMP and
+ OPAQUEV.
+
2007-03-28 Werner Koch <wk@g10code.com>
* ecc.c: Entirely rewritten with only a few traces of the old
diff --git a/cipher/ecc.c b/cipher/ecc.c
index b38a5d02..cc4d8f63 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -791,6 +791,7 @@ ecc_generate (int algo, unsigned int nbits, unsigned long dummy,
gcry_mpi_t g_x, g_y, q_x, q_y;
(void)algo;
+ (void)dummy;
/* Make an empty list of factors. */
*retfactors = gcry_calloc ( 1, sizeof **retfactors );
@@ -922,6 +923,8 @@ ecc_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey,
ECC_public_key pk;
(void)algo;
+ (void)cmp;
+ (void)opaquev;
if (!data[0] || !data[1] || !hash || !pkey[0] || !pkey[1] || !pkey[2]
|| !pkey[3] || !pkey[4] || !pkey[5] )