aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_common
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2014-09-19 01:40:03 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-06 22:18:03 (GMT)
commita8572960a97f724f82e8564c6ff6901ccc3ef985 (patch)
tree31a7626cb7487f3d954c68d9420663913bb5b5e7 /src/eap_common
parent1236eda131ae1bd8c597fe5016e4801fe745f8a6 (diff)
downloadhostap-a8572960a97f724f82e8564c6ff6901ccc3ef985.zip
hostap-a8572960a97f724f82e8564c6ff6901ccc3ef985.tar.gz
hostap-a8572960a97f724f82e8564c6ff6901ccc3ef985.tar.bz2
Support building with BoringSSL
BoringSSL is Google's cleanup of OpenSSL and an attempt to unify Chromium, Android and internal codebases around a single OpenSSL. As part of moving Android to BoringSSL, the wpa_supplicant maintainers in Android requested that I upstream the change. I've worked to reduce the size of the patch a lot but I'm afraid that it still contains a number of #ifdefs. [1] https://www.imperialviolet.org/2014/06/20/boringssl.html Signed-off-by: Adam Langley <agl@chromium.org>
Diffstat (limited to 'src/eap_common')
-rw-r--r--src/eap_common/eap_pwd_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eap_common/eap_pwd_common.c b/src/eap_common/eap_pwd_common.c
index fdcff7f..631c363 100644
--- a/src/eap_common/eap_pwd_common.c
+++ b/src/eap_common/eap_pwd_common.c
@@ -106,9 +106,11 @@ int compute_password_element(EAP_PWD_group *grp, u16 num,
case 21:
nid = NID_secp521r1;
break;
+#ifndef OPENSSL_IS_BORINGSSL
case 25:
nid = NID_X9_62_prime192v1;
break;
+#endif /* OPENSSL_IS_BORINGSSL */
case 26:
nid = NID_secp224r1;
break;