From: Tomas Mraz Date: Fri, 19 Mar 2021 15:01:55 +0000 (+0100) Subject: Remove RSA bignum_data that is not used anywhere X-Git-Tag: openssl-3.0.0-alpha14~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c464583483df70ad8df9907168bf015d672742bd;p=thirdparty%2Fopenssl.git Remove RSA bignum_data that is not used anywhere Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14624) --- diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c index bfd274a66ae..b9b5d395bb3 100644 --- a/crypto/rsa/rsa_lib.c +++ b/crypto/rsa/rsa_lib.c @@ -172,7 +172,6 @@ void RSA_free(RSA *r) #endif BN_BLINDING_free(r->blinding); BN_BLINDING_free(r->mt_blinding); - OPENSSL_free(r->bignum_data); OPENSSL_free(r); } diff --git a/crypto/rsa/rsa_local.h b/crypto/rsa/rsa_local.h index 73f7f91804d..6979adfcd1a 100644 --- a/crypto/rsa/rsa_local.h +++ b/crypto/rsa/rsa_local.h @@ -94,11 +94,6 @@ struct rsa_st { BN_MONT_CTX *_method_mod_n; BN_MONT_CTX *_method_mod_p; BN_MONT_CTX *_method_mod_q; - /* - * all BIGNUM values are actually in the following data, if it is not - * NULL - */ - char *bignum_data; BN_BLINDING *blinding; BN_BLINDING *mt_blinding; CRYPTO_RWLOCK *lock;