aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/gmp_helper.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-18 08:19:12 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-18 08:19:12 +0000
commit99400f979e2b22bee27d03549d478f45d473ee63 (patch)
treecd9632537a8a89edf9e264090188f6d0372dd7f8 /Source/charon/utils/gmp_helper.c
parentd768cb67902783f4275f08042d4f3ce6f1c0984a (diff)
downloadstrongswan-99400f979e2b22bee27d03549d478f45d473ee63.tar.bz2
strongswan-99400f979e2b22bee27d03549d478f45d473ee63.tar.xz
- wrote diffie_hellman_t but not tested
Diffstat (limited to 'Source/charon/utils/gmp_helper.c')
-rw-r--r--Source/charon/utils/gmp_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/charon/utils/gmp_helper.c b/Source/charon/utils/gmp_helper.c
index 6d6ddc52b..d9e2ec9f1 100644
--- a/Source/charon/utils/gmp_helper.c
+++ b/Source/charon/utils/gmp_helper.c
@@ -130,6 +130,7 @@ static status_t init_prime (private_gmp_helper_t *this, mpz_t *prime, int bytes)
allocator_free(random_bytes.ptr);
random_bytes.ptr = NULL;
+ /* composites are possible but should never occur */
mpz_nextprime (*(prime),*(prime));
return SUCCESS;