aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/digest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-04-12 13:02:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-04-12 13:02:31 +0000
commit18327cd0e455afa1f2590fff9a922cfaf235968d (patch)
tree2de1b375e60ba58569040b3f426fc1d2730061c2 /crypto/evp/digest.c
parent2022cfe07e331dc4b69829ca4dd45c295190d471 (diff)
downloadopenssl-18327cd0e455afa1f2590fff9a922cfaf235968d.tar.gz
Copy update callback across when copying EVP_MD_CTX.
Remove unnecessary reference to EVP_MD_CTX in HMAC pkey method.
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 095774bf62..ec4d1779da 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -292,6 +292,8 @@ int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in)
memcpy(out->md_data,in->md_data,out->digest->ctx_size);
}
+ out->update = in->update;
+
if (in->pctx)
{
out->pctx = EVP_PKEY_CTX_dup(in->pctx);