diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-06-19 18:20:03 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-06-21 21:33:00 +0100 |
commit | 810639536cfa66df0c232fa4f15a7e5f00f31ce8 (patch) | |
tree | 89464512083216328e7e5378286de45e9c4c4d08 /crypto/dsa | |
parent | e423c360fd2670b151c8e61439b36a77c77f77c3 (diff) | |
download | openssl-810639536cfa66df0c232fa4f15a7e5f00f31ce8.tar.gz |
Add control to retrieve signature MD.
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa_pmeth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c index 715d8d675b..4c7a5a847b 100644 --- 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: |