aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_common
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-11-01 09:29:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-01 09:29:06 (GMT)
commitd129b02247c6de26d8298aa39d6ee3c0b1c4615c (patch)
tree7b9bd7d9dd7dee4be62c4234b64cb9ade6ac285c /src/eap_common
parent1720ff58ec57fae41b067cbb0fee26b89673a946 (diff)
downloadhostap-d129b02247c6de26d8298aa39d6ee3c0b1c4615c.zip
hostap-d129b02247c6de26d8298aa39d6ee3c0b1c4615c.tar.gz
hostap-d129b02247c6de26d8298aa39d6ee3c0b1c4615c.tar.bz2
EAP-pwd: Add support for Brainpool Elliptic Curves
This allows the IKE groups 27-30 (RFC 6932) to be used with OpenSSL 1.0.2 and newer. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_common')
-rw-r--r--src/eap_common/eap_pwd_common.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/eap_common/eap_pwd_common.c b/src/eap_common/eap_pwd_common.c
index 4d27623..67f8f70 100644
--- a/src/eap_common/eap_pwd_common.c
+++ b/src/eap_common/eap_pwd_common.c
@@ -115,6 +115,26 @@ int compute_password_element(EAP_PWD_group *grp, u16 num,
case 26:
nid = NID_secp224r1;
break;
+#ifdef NID_brainpoolP224r1
+ case 27:
+ nid = NID_brainpoolP224r1;
+ break;
+#endif /* NID_brainpoolP224r1 */
+#ifdef NID_brainpoolP256r1
+ case 28:
+ nid = NID_brainpoolP256r1;
+ break;
+#endif /* NID_brainpoolP256r1 */
+#ifdef NID_brainpoolP384r1
+ case 29:
+ nid = NID_brainpoolP384r1;
+ break;
+#endif /* NID_brainpoolP384r1 */
+#ifdef NID_brainpoolP512r1
+ case 30:
+ nid = NID_brainpoolP512r1;
+ break;
+#endif /* NID_brainpoolP512r1 */
default:
wpa_printf(MSG_INFO, "EAP-pwd: unsupported group %d", num);
return -1;