projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7475335
)
Typo: should check mgf1md
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 13 Jul 2017 14:51:27 +0000
(15:51 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 19 Jul 2017 13:02:20 +0000
(14:02 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3920)
crypto/rsa/rsa_pmeth.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_pmeth.c
b/crypto/rsa/rsa_pmeth.c
index 4ba713910c2f4141970f6e4f82583200c65099c9..bd7b47fc4f21b3e7c80e6a4989af0cb58b877bb8 100644
(file)
--- a/
crypto/rsa/rsa_pmeth.c
+++ b/
crypto/rsa/rsa_pmeth.c
@@
-504,7
+504,7
@@
static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
*(const EVP_MD **)p2 = rctx->md;
} else {
if (rsa_pss_restricted(rctx)) {
- if (EVP_MD_type(rctx->md) == EVP_MD_type(p2))
+ if (EVP_MD_type(rctx->m
gf1m
d) == EVP_MD_type(p2))
return 1;
RSAerr(RSA_F_PKEY_RSA_CTRL, RSA_R_MGF1_DIGEST_NOT_ALLOWED);
return 0;