diff options
author | Martin Willi <martin@strongswan.org> | 2008-11-22 16:14:55 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-11-22 16:14:55 +0000 |
commit | a20abb81e9ffcc7e7b6baecb971272de20a17755 (patch) | |
tree | 159ebb976de95aa64fe8e31c15850708e8af4c1d /src/libstrongswan/crypto | |
parent | 8f45ece098abf2a5a970fee54bbbccc2b77d426a (diff) | |
download | strongswan-a20abb81e9ffcc7e7b6baecb971272de20a17755.tar.bz2 strongswan-a20abb81e9ffcc7e7b6baecb971272de20a17755.tar.xz |
added a MODP_NULL Diffie Hellman group to avoid calculation overhead in load-testing
Diffstat (limited to 'src/libstrongswan/crypto')
-rw-r--r-- | src/libstrongswan/crypto/diffie_hellman.c | 4 | ||||
-rw-r--r-- | src/libstrongswan/crypto/diffie_hellman.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/diffie_hellman.c b/src/libstrongswan/crypto/diffie_hellman.c index fb17898d0..c6e4482de 100644 --- a/src/libstrongswan/crypto/diffie_hellman.c +++ b/src/libstrongswan/crypto/diffie_hellman.c @@ -36,5 +36,7 @@ ENUM_NEXT(diffie_hellman_group_names, MODP_2048_BIT, ECP_521_BIT, MODP_1536_BIT, ENUM_NEXT(diffie_hellman_group_names, ECP_192_BIT, ECP_224_BIT, ECP_521_BIT, "ECP_192_BIT", "ECP_224_BIT"); -ENUM_END(diffie_hellman_group_names, ECP_224_BIT); +ENUM_NEXT(diffie_hellman_group_names, MODP_NULL, MODP_NULL, ECP_224_BIT, + "MODP_NULL"); +ENUM_END(diffie_hellman_group_names, MODP_NULL); diff --git a/src/libstrongswan/crypto/diffie_hellman.h b/src/libstrongswan/crypto/diffie_hellman.h index 65a6714c5..04ed9eaeb 100644 --- a/src/libstrongswan/crypto/diffie_hellman.h +++ b/src/libstrongswan/crypto/diffie_hellman.h @@ -52,6 +52,8 @@ enum diffie_hellman_group_t { ECP_521_BIT = 21, ECP_192_BIT = 25, ECP_224_BIT = 26, + /** insecure NULL diffie hellman group for testing, in PRIVATE USE */ + MODP_NULL = 1024, }; /** |