From: Dr. Stephen Henson Date: Sun, 20 Dec 2015 18:18:43 +0000 (+0000) Subject: Don't check RSA_FLAG_SIGN_VER. X-Git-Tag: OpenSSL_1_0_2f~33 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=6656ba7152dfe4bba865e327dd362ea08544aa80;hp=17592f323ac7dad381cc3b512573c291b1a820c0 Don't check RSA_FLAG_SIGN_VER. Reviewed-by: Richard Levitte --- diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c index 82ca8324df..ed63a1d8b0 100644 --- a/crypto/rsa/rsa_sign.c +++ b/crypto/rsa/rsa_sign.c @@ -84,7 +84,7 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len, return 0; } #endif - if ((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) { + if (rsa->meth->rsa_sign) { return rsa->meth->rsa_sign(type, m, m_len, sigret, siglen, rsa); } /* Special case: SSL signature, just check the length */ @@ -293,7 +293,7 @@ int RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) { - if ((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_verify) { + if (rsa->meth->rsa_verify) { return rsa->meth->rsa_verify(dtype, m, m_len, sigbuf, siglen, rsa); }