[openssl] master update

Dr. Paul Dale pauli at openssl.org
Sun Feb 14 06:49:12 UTC 2021


The branch master has been updated
       via  8a43091bc7c021ae90101473ade8ee4f52976482 (commit)
      from  bae39163409ac3b8a1c579c2bcfbdae35370a133 (commit)


- Log -----------------------------------------------------------------
commit 8a43091bc7c021ae90101473ade8ee4f52976482
Author: Shane Lontis <shane.lontis at oracle.com>
Date:   Fri Feb 12 14:17:23 2021 +1000

    Remove dead code in rsa_pkey_ctrl.
    
    Fixes CID #1472393
    
    Previously this switch handled CMS & PCKS7 controls (e.g ANS1_PKEY_CTRL_PKCS7_SIGN)
    which fell thru to the dead code to set the X509_ALG.
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14163)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rsa/rsa_ameth.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c
index e2dec1c98d..479155b90b 100644
--- a/crypto/rsa/rsa_ameth.c
+++ b/crypto/rsa/rsa_ameth.c
@@ -486,7 +486,6 @@ static int rsa_sig_print(BIO *bp, const X509_ALGOR *sigalg,
 
 static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
 {
-    X509_ALGOR *alg = NULL;
     const EVP_MD *md;
     const EVP_MD *mgf1md;
     int min_saltlen;
@@ -508,14 +507,7 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
 
     default:
         return -2;
-
     }
-
-    if (alg)
-        X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaEncryption), V_ASN1_NULL, 0);
-
-    return 1;
-
 }
 
 /*


More information about the openssl-commits mailing list