aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-10-26 23:53:52 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-10-26 23:53:52 +0000
commit21a45f2f2d4c6084bd17a2a9b51a25844b535603 (patch)
tree6880f52b087fa575c0c563cc9c5ce230ad03e7fe /src/libstrongswan/plugins/openssl
parent82d20c058813655596ed743bfe5a8617a7fbcafe (diff)
downloadstrongswan-21a45f2f2d4c6084bd17a2a9b51a25844b535603.tar.bz2
strongswan-21a45f2f2d4c6084bd17a2a9b51a25844b535603.tar.xz
use 512 bits of entropy for secret DH exponents
Diffstat (limited to 'src/libstrongswan/plugins/openssl')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
index d3e54919a..217b1aa55 100644
--- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
+++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
@@ -217,6 +217,7 @@ openssl_diffie_hellman_t *openssl_diffie_hellman_create(diffie_hellman_group_t g
free(this);
return NULL;
}
+ this->dh->length = DH_EXPONENT_ENTROPY_SIZE;
this->group = group;
this->computed = FALSE;