From: Jouni Malinen Date: Fri, 17 Nov 2017 18:24:46 +0000 (+0200) Subject: BoringSSL: Define RSA_bits() helper X-Git-Tag: hostap_2_7~841 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cfbd3b0f63fb299f1187f16db6fcec9421e3df4;p=thirdparty%2Fhostap.git BoringSSL: Define RSA_bits() helper It looks like BoringSSL claims to have OPENSSL_VERSION_NUMBER for a 1.1.0 version, but it does not provide RSA_bits(). For now, add this backwards compatibility wrapper for BoringSSL regardless of the version it claims to be. Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index cb97c93ef..beca18d29 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -103,7 +103,7 @@ static size_t SSL_SESSION_get_master_key(const SSL_SESSION *session, #endif -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(OPENSSL_IS_BORINGSSL) #ifdef CONFIG_SUITEB static int RSA_bits(const RSA *r) {