From: Jouni Malinen Date: Fri, 15 Apr 2022 08:26:26 +0000 (+0300) Subject: OpenSSL: Remove now unused compatibility wrapper for RSA_bits() X-Git-Tag: hostap_2_11~2076 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11761784376ac6e1e0f047845f982ee1b5dde025;p=thirdparty%2Fhostap.git OpenSSL: Remove now unused compatibility wrapper for RSA_bits() This function is not used anymore, but the compatibility wrapper for older OpenSSL versions was forgotten to be removed. Fixes: 09c62aaf11a7 ("OpenSSL: Determine RSA key size without low-level routines") Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index e6b7d411d..d1ec415dc 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -114,14 +114,6 @@ static size_t SSL_SESSION_get_master_key(const SSL_SESSION *session, #if OPENSSL_VERSION_NUMBER < 0x10100000L || \ (defined(LIBRESSL_VERSION_NUMBER) && \ LIBRESSL_VERSION_NUMBER < 0x20700000L) -#ifdef CONFIG_SUITEB -static int RSA_bits(const RSA *r) -{ - return BN_num_bits(r->n); -} -#endif /* CONFIG_SUITEB */ - - static const unsigned char * ASN1_STRING_get0_data(const ASN1_STRING *x) { return ASN1_STRING_data((ASN1_STRING *) x);