aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_pmeth.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-06-19 18:20:03 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-06-21 21:33:00 +0100
commit810639536cfa66df0c232fa4f15a7e5f00f31ce8 (patch)
tree89464512083216328e7e5378286de45e9c4c4d08 /crypto/ec/ec_pmeth.c
parente423c360fd2670b151c8e61439b36a77c77f77c3 (diff)
downloadopenssl-810639536cfa66df0c232fa4f15a7e5f00f31ce8.tar.gz
Add control to retrieve signature MD.
Diffstat (limited to 'crypto/ec/ec_pmeth.c')
-rw-r--r--crypto/ec/ec_pmeth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c
index 63eedca3c7..4110d5e4f0 100644
--- 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: