]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Revert "BoringSSL: Add DPP special cases regardless of claimed version number"
authorJouni Malinen <j@w1.fi>
Sun, 10 Dec 2017 21:24:31 +0000 (23:24 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Dec 2017 21:27:04 +0000 (23:27 +0200)
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 <j@w1.fi>
src/common/dpp.c

index 5970747553ac4a62647637d9521dc57231f350b1..17ef2168b914f4d3436b2b280ed7aec7c7f61055 100644 (file)
@@ -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;