]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Remove now unused compatibility wrapper for RSA_bits()
authorJouni Malinen <j@w1.fi>
Fri, 15 Apr 2022 08:26:26 +0000 (11:26 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Apr 2022 08:58:34 +0000 (11:58 +0300)
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 <j@w1.fi>
src/crypto/tls_openssl.c

index e6b7d411db9a6053ba0ea0441f941c4c34286992..d1ec415dc0c2a45771326ecb35f80f5b5361d064 100644 (file)
@@ -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);