projects
/
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.
[openssl.git]
/
crypto
/
ec
/
ec_pmeth.c
diff --git
a/crypto/ec/ec_pmeth.c
b/crypto/ec/ec_pmeth.c
index 63eedca3c7dadc40b81f3e7cb757815626d65f06..4110d5e4f0c867ed8887fbd29bb7bda891fc8145 100644
(file)
--- a/
crypto/ec/ec_pmeth.c
+++ b/
crypto/ec/ec_pmeth.c
@@
-242,6
+242,10
@@
static int pkey_ec_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_PEER_KEY:
/* Default behaviour is OK */
case EVP_PKEY_CTRL_DIGESTINIT: