From 346e9c5712e947549eb24f57128ef8075c3dd47b Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 22 May 2008 11:55:05 +0000 Subject: added the ECP groups from RFC 5114 --- src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c') 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; -- cgit v1.2.3