From: Jouni Malinen Date: Sun, 10 Dec 2017 21:24:31 +0000 (+0200) Subject: Revert "BoringSSL: Add DPP special cases regardless of claimed version number" X-Git-Tag: hostap_2_7~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5da39607df21225211eb0e69b5f7a3b5103c03a;p=thirdparty%2Fhostap.git Revert "BoringSSL: Add DPP special cases regardless of claimed version number" This reverts commit 5548453a2d0061cf5d65180dca5d0141e15e14bb since BoringSSL added ECDSA_SIG_set0() and ECDSA_SIG_get0() in commit 8dc226ca8f1ef60737e1c1bf8cfcabf51d4068c7 ('Add some missing OpenSSL 1.1.0 accessors.') and updated X509_ALGOR_get0() prototype to match OpenSSL 1.1.0 changes in commit e3b2a5d30d309091cab3e6a19dee7323c40d968d ('Const-correct X509_ALGOR_get0.'). Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index 597074755..17ef2168b 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -43,7 +43,7 @@ static int dpp_test_gen_invalid_key(struct wpabuf *msg, const struct dpp_curve_params *curve); #endif /* CONFIG_TESTING_OPTIONS */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(OPENSSL_IS_BORINGSSL) +#if OPENSSL_VERSION_NUMBER < 0x10100000L /* Compatibility wrappers for older versions. */ static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) @@ -811,7 +811,7 @@ static int dpp_parse_uri_pk(struct dpp_bootstrap_info *bi, const char *info) const unsigned char *pk; int ppklen; X509_ALGOR *pa; -#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(OPENSSL_IS_BORINGSSL) +#if OPENSSL_VERSION_NUMBER < 0x10100000L ASN1_OBJECT *pa_oid; #else const ASN1_OBJECT *pa_oid;