aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/digest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-07-10 18:36:55 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-07-10 18:36:55 +0000
commitb7683e3a5d93aa5319263b7bbfd0fee18f25955e (patch)
tree25f7f84a90273ae2ff3bfaf1e25052f1cf1ce5be /crypto/evp/digest.c
parent0ee2166cc50cffba02514b686c6bf75c76ff2e62 (diff)
downloadopenssl-b7683e3a5d93aa5319263b7bbfd0fee18f25955e.tar.gz
Allow digests to supply S/MIME micalg values from a ctrl.
Send ctrls to EVP_PKEY_METHOD during signing of PKCS7 structure so customisation is possible.
Diffstat (limited to 'crypto/evp/digest.c')
-rw-r--r--crypto/evp/digest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index 11d73388d4..256efd6e9d 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -332,6 +332,8 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
OPENSSL_cleanse(ctx->md_data,ctx->digest->ctx_size);
OPENSSL_free(ctx->md_data);
}
+ if (ctx->pctx)
+ EVP_PKEY_CTX_free(ctx->pctx);
#ifndef OPENSSL_NO_ENGINE
if(ctx->engine)
/* The EVP_MD we used belongs to an ENGINE, release the