Add control to retrieve signature MD.

This commit is contained in:
Dr. Stephen Henson
2013-06-19 18:20:03 +01:00
parent e423c360fd
commit 810639536c
5 changed files with 26 additions and 0 deletions

View File

@@ -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: