Don't check RSA_FLAG_SIGN_VER.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 20 Dec 2015 18:18:43 +0000 (18:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 20 Dec 2015 19:27:03 +0000 (19:27 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/rsa/rsa_sign.c

index 82ca8324dfbc11c02736e0abffe5b7649b313b36..ed63a1d8b0e3fe7da135bb107e71fb6200c94c8c 100644 (file)
@@ -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);
     }