summaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_sign.c
diff options
context:
space:
mode:
authorMark J. Cox <mark@openssl.org>1999-01-31 12:14:39 +0000
committerMark J. Cox <mark@openssl.org>1999-01-31 12:14:39 +0000
commit351d899878c567448b9b9b6d715ec828c888f3c2 (patch)
tree4afa6a04d378d8107b454ba1dba0c8b4beb92999 /crypto/evp/p_sign.c
parent5810a5f4c767ba68185e38fa2c5709425c1903a8 (diff)
Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
Submitted by: Eric A Young - from changes to C2Net SSLeay Reviewed by: Mark Cox PR:
Diffstat (limited to 'crypto/evp/p_sign.c')
-rw-r--r--crypto/evp/p_sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_sign.c b/crypto/evp/p_sign.c
index 073270ce31..4b34206083 100644
--- a/crypto/evp/p_sign.c
+++ b/crypto/evp/p_sign.c
@@ -91,7 +91,7 @@ EVP_PKEY *pkey;
MS_STATIC EVP_MD_CTX tmp_ctx;
*siglen=0;
- memcpy(&tmp_ctx,ctx,sizeof(EVP_MD_CTX));
+ EVP_MD_CTX_copy(&tmp_ctx,ctx);
EVP_DigestFinal(&tmp_ctx,&(m[0]),&m_len);
for (i=0; i<4; i++)
{