projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add control to retrieve signature MD.
[oweals/openssl.git]
/
crypto
/
dsa
/
dsa_pmeth.c
diff --git
a/crypto/dsa/dsa_pmeth.c
b/crypto/dsa/dsa_pmeth.c
index 715d8d675bb766994d06d8ee2339bb71246a5a9a..4c7a5a847b3e8350ea4234360b6a5d1509e30dec 100644
(file)
--- a/
crypto/dsa/dsa_pmeth.c
+++ b/
crypto/dsa/dsa_pmeth.c
@@
-199,6
+199,10
@@
static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
dctx->md = p2;
return 1;
+ case EVP_PKEY_CTRL_GET_MD:
+ *(const EVP_MD **)p2 = dctx->md;
+ return 1;
+
case EVP_PKEY_CTRL_DIGESTINIT:
case EVP_PKEY_CTRL_PKCS7_SIGN:
case EVP_PKEY_CTRL_CMS_SIGN: