aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-05-22 11:55:05 +0000
committerTobias Brunner <tobias@strongswan.org>2008-05-22 11:55:05 +0000
commit346e9c5712e947549eb24f57128ef8075c3dd47b (patch)
treea8f842ea438cb3c28cdbbb27a7b9267da3f2be70 /src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
parentfc1a31d54b324625cca413583abc43406d70e930 (diff)
downloadstrongswan-346e9c5712e947549eb24f57128ef8075c3dd47b.tar.bz2
strongswan-346e9c5712e947549eb24f57128ef8075c3dd47b.tar.xz
added the ECP groups from RFC 5114
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
index 0aeaf6b31..46371d2cc 100644
--- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
+++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
@@ -314,6 +314,12 @@ openssl_ec_diffie_hellman_t *openssl_ec_diffie_hellman_create(diffie_hellman_gro
switch (group)
{
+ case ECP_192_BIT:
+ this->key = EC_KEY_new_by_curve_name(NID_X9_62_prime192v1);
+ break;
+ case ECP_224_BIT:
+ this->key = EC_KEY_new_by_curve_name(NID_secp224r1);
+ break;
case ECP_256_BIT:
this->key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
break;