summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_sign.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
committerjkim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
commit64cb0c902e312216cdc4c826fc0be9ba9e1bf4da (patch)
treeae816a5a768ec78af3610e509ca39507b33aa9f7 /crypto/rsa/rsa_sign.c
parente5911a7a89e76432a8d4607068e9171b30272e08 (diff)
downloadFreeBSD-src-64cb0c902e312216cdc4c826fc0be9ba9e1bf4da.zip
FreeBSD-src-64cb0c902e312216cdc4c826fc0be9ba9e1bf4da.tar.gz
Import OpenSSL 1.0.2d.
Diffstat (limited to 'crypto/rsa/rsa_sign.c')
-rw-r--r--crypto/rsa/rsa_sign.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c
index bc91da2..19461c6 100644
--- a/crypto/rsa/rsa_sign.c
+++ b/crypto/rsa/rsa_sign.c
@@ -261,19 +261,8 @@ int int_rsa_verify(int dtype, const unsigned char *m,
OBJ_nid2ln(dtype));
#endif
if (sigtype != dtype) {
- if (((dtype == NID_md5) &&
- (sigtype == NID_md5WithRSAEncryption)) ||
- ((dtype == NID_md2) &&
- (sigtype == NID_md2WithRSAEncryption))) {
- /* ok, we will let it through */
-#if !defined(OPENSSL_NO_STDIO) && !defined(OPENSSL_SYS_WIN16)
- fprintf(stderr,
- "signature has problems, re-make with post SSLeay045\n");
-#endif
- } else {
- RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_ALGORITHM_MISMATCH);
- goto err;
- }
+ RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_ALGORITHM_MISMATCH);
+ goto err;
}
if (rm) {
const EVP_MD *md;
OpenPOWER on IntegriCloud