Remove obsolete support for old code.
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
parent
abdd677125
commit
3d0cf91807
@ -246,20 +246,9 @@ int int_rsa_verify(int dtype, const unsigned char *m,
|
|||||||
OBJ_nid2ln(dtype));
|
OBJ_nid2ln(dtype));
|
||||||
#endif
|
#endif
|
||||||
if (sigtype != dtype) {
|
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)
|
|
||||||
fprintf(stderr,
|
|
||||||
"signature has problems, re-make with post SSLeay045\n");
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_ALGORITHM_MISMATCH);
|
RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_ALGORITHM_MISMATCH);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (rm) {
|
if (rm) {
|
||||||
const EVP_MD *md;
|
const EVP_MD *md;
|
||||||
md = EVP_get_digestbynid(dtype);
|
md = EVP_get_digestbynid(dtype);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user