From 56d370e0084511d9f9d706d0bcf2e3375b46ca25 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 21 Feb 2007 13:26:38 +0000 Subject: A lot of cleanups as well as minor API changes. Ported some changes from 1.2 to here. --- cipher/primegen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cipher/primegen.c') diff --git a/cipher/primegen.c b/cipher/primegen.c index 17c65d7d..11da16a0 100644 --- a/cipher/primegen.c +++ b/cipher/primegen.c @@ -1172,6 +1172,8 @@ gcry_prime_check (gcry_mpi_t x, unsigned int flags) gcry_err_code_t err = GPG_ERR_NO_ERROR; gcry_mpi_t val_2 = mpi_alloc_set_ui (2); /* Used by the Fermat test. */ + (void)flags; + /* We use 64 rounds because the prime we are going to test is not guaranteed to be a random one. */ if (! check_prime (x, val_2, 64, NULL, NULL)) -- cgit v1.2.1