projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: fix all sources that used EVP_MD_CTX_(create|init|destroy)
[openssl.git]
/
crypto
/
evp
/
p_verify.c
diff --git
a/crypto/evp/p_verify.c
b/crypto/evp/p_verify.c
index c2328f22936506d284d152a73d7462a39bd36a5a..32ec0de12115bebaa72b9817571e428b8e857d4f 100644
(file)
--- a/
crypto/evp/p_verify.c
+++ b/
crypto/evp/p_verify.c
@@
-76,7
+76,7
@@
int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
goto err;
} else {
int rv = 0;
goto err;
} else {
int rv = 0;
- EVP_MD_CTX *tmp_ctx = EVP_MD_CTX_
create
();
+ EVP_MD_CTX *tmp_ctx = EVP_MD_CTX_
new
();
if (tmp_ctx == NULL) {
EVPerr(EVP_F_EVP_VERIFYFINAL, ERR_R_MALLOC_FAILURE);
return 0;
if (tmp_ctx == NULL) {
EVPerr(EVP_F_EVP_VERIFYFINAL, ERR_R_MALLOC_FAILURE);
return 0;
@@
-84,7
+84,7
@@
int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
rv = EVP_MD_CTX_copy_ex(tmp_ctx, ctx);
if (rv)
rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len);
rv = EVP_MD_CTX_copy_ex(tmp_ctx, ctx);
if (rv)
rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len);
- EVP_MD_CTX_
destroy
(tmp_ctx);
+ EVP_MD_CTX_
free
(tmp_ctx);
if (!rv)
return 0;
}
if (!rv)
return 0;
}