summaryrefslogtreecommitdiffstats
path: root/crypto/cms/cms_sd.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-11-30 23:43:27 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-07 17:39:23 +0100
commiteda34e4bef33a3b8f1e207bf04769007c70cbd1e (patch)
tree25124fceef881c491a3c175eadd02e021da49ac7 /crypto/cms/cms_sd.c
parentRemove HMAC_CTX_cleanup and combine its functionality into EVP_MD_CTX_init (diff)
downloadopenssl-eda34e4bef33a3b8f1e207bf04769007c70cbd1e.tar.xz
openssl-eda34e4bef33a3b8f1e207bf04769007c70cbd1e.zip
Adapt the rest of the source to the removal of (EVP_MD_CTX|HMAC_CTX)_cleanup
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/cms/cms_sd.c')
-rw-r--r--crypto/cms/cms_sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c
index 46a7876d94..1570fb6fe5 100644
--- a/crypto/cms/cms_sd.c
+++ b/crypto/cms/cms_sd.c
@@ -728,7 +728,7 @@ int CMS_SignerInfo_sign(CMS_SignerInfo *si)
goto err;
}
- EVP_MD_CTX_cleanup(mctx);
+ EVP_MD_CTX_init(mctx);
ASN1_STRING_set0(si->signature, abuf, siglen);
@@ -736,7 +736,7 @@ int CMS_SignerInfo_sign(CMS_SignerInfo *si)
err:
OPENSSL_free(abuf);
- EVP_MD_CTX_cleanup(mctx);
+ EVP_MD_CTX_init(mctx);
return 0;
}
@@ -780,7 +780,7 @@ int CMS_SignerInfo_verify(CMS_SignerInfo *si)
if (r <= 0)
CMSerr(CMS_F_CMS_SIGNERINFO_VERIFY, CMS_R_VERIFICATION_FAILURE);
err:
- EVP_MD_CTX_cleanup(mctx);
+ EVP_MD_CTX_init(mctx);
return r;
}