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:
08be033
)
Set EVP_PKEY_CTX in SignerInfo
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 6 Dec 2016 14:19:41 +0000
(14:19 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 8 Jan 2017 01:42:49 +0000
(
01:42
+0000)
If we aren't setting public key parameters make EVP_PKEY_CTX available
in SignerInfo so PSS mode and parameters are automatically selected.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
crypto/cms/cms_sd.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_sd.c
b/crypto/cms/cms_sd.c
index 76c1f53b564df7942fea600f5b0bc88ce47e7cea..a31e8495ca74e180a29c702e3739a6385adfd5a8 100644
(file)
--- a/
crypto/cms/cms_sd.c
+++ b/
crypto/cms/cms_sd.c
@@
-656,6
+656,7
@@
int CMS_SignerInfo_sign(CMS_SignerInfo *si)
EVP_MD_CTX_reset(mctx);
if (EVP_DigestSignInit(mctx, &pctx, md, NULL, si->pkey) <= 0)
goto err;
+ si->pctx = pctx;
}
if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN,