projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
[openssl.git]
/
crypto
/
evp
/
p_sign.c
diff --git
a/crypto/evp/p_sign.c
b/crypto/evp/p_sign.c
index
073270c
..
4b34206
100644
(file)
--- 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++)
{