From 667aef4c6a1bc604abb1e8c77a038598aa2db40c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Apr 2005 22:07:17 +0000 Subject: [PATCH] Port from stable branch. --- ChangeLog.0_9_7-stable_not-in-head | 10 ---------- crypto/rsa/rsa_sign.c | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/ChangeLog.0_9_7-stable_not-in-head b/ChangeLog.0_9_7-stable_not-in-head index 5ed3ee1e71..d9ec6d26c9 100644 --- a/ChangeLog.0_9_7-stable_not-in-head +++ b/ChangeLog.0_9_7-stable_not-in-head @@ -381,16 +381,6 @@ be added to the end of this file. Dont forget req. -2003-04-10 03:13 steve - - Changed: - crypto/rsa/rsa_sign.c (1.11.2.6), "Exp", lines: +2 -2 - - Only call redirected rsa_sign or rsa_verify if the pointer is set. - - This allows, for example, a smart card to redirect rsa_sign - and keep the default rsa_verify. - 2003-07-03 23:43 levitte Changed: diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c index 9e7dfd1927..230ec6d7ea 100644 --- a/crypto/rsa/rsa_sign.c +++ b/crypto/rsa/rsa_sign.c @@ -76,7 +76,7 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len, const unsigned char *s = NULL; X509_ALGOR algor; ASN1_OCTET_STRING digest; - if(rsa->flags & RSA_FLAG_SIGN_VER) + if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) { return rsa->meth->rsa_sign(type, m, m_len, sigret, siglen, rsa); @@ -155,7 +155,7 @@ int RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, return(0); } - if(rsa->flags & RSA_FLAG_SIGN_VER) + if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_verify) { return rsa->meth->rsa_verify(dtype, m, m_len, sigbuf, siglen, rsa); -- 2.25.1