diff options
author | Mark J. Cox <mark@openssl.org> | 1999-01-31 13:14:39 +0100 |
---|---|---|
committer | Mark J. Cox <mark@openssl.org> | 1999-01-31 13:14:39 +0100 |
commit | 351d899878c567448b9b9b6d715ec828c888f3c2 (patch) | |
tree | 4afa6a04d378d8107b454ba1dba0c8b4beb92999 /crypto/evp/p_verify.c | |
parent | Reflect correct filename (diff) | |
download | openssl-351d899878c567448b9b9b6d715ec828c888f3c2.tar.xz openssl-351d899878c567448b9b9b6d715ec828c888f3c2.zip |
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_verify.c')
-rw-r--r-- | crypto/evp/p_verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_verify.c b/crypto/evp/p_verify.c index 8d727d8f02..0a9bb05a74 100644 --- a/crypto/evp/p_verify.c +++ b/crypto/evp/p_verify.c @@ -88,7 +88,7 @@ EVP_PKEY *pkey; EVPerr(EVP_F_EVP_VERIFYFINAL,EVP_R_WRONG_PUBLIC_KEY_TYPE); return(-1); } - memcpy(&tmp_ctx,ctx,sizeof(EVP_MD_CTX)); + EVP_MD_CTX_copy(&tmp_ctx,ctx); EVP_DigestFinal(&tmp_ctx,&(m[0]),&m_len); if (ctx->digest->verify == NULL) { |