From 3cfbd3b0f63fb299f1187f16db6fcec9421e3df4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 17 Nov 2017 20:24:46 +0200 Subject: [PATCH] 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 --- src/crypto/tls_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {