projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b148fd
)
Use EVP_MD_CTX_destroy() instead of _free().
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 22 Jun 2016 21:08:30 +0000
(23:08 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 22 Jun 2016 21:08:30 +0000
(23:08 +0200)
Thanks to azrdev for pointing out the build failure on Fedora 23.
src/openssl/digest.c
patch
|
blob
|
history
diff --git
a/src/openssl/digest.c
b/src/openssl/digest.c
index
135e7e6
..
c303785
100644
(file)
--- a/
src/openssl/digest.c
+++ b/
src/openssl/digest.c
@@
-101,11
+101,11
@@
bool digest_create(digest_t *digest, const void *indata, size_t inlen, void *out
|| !EVP_DigestUpdate(ctx, indata, inlen)
|| !EVP_DigestFinal(ctx, tmpdata, NULL)) {
logger(DEBUG_ALWAYS, LOG_DEBUG, "Error creating digest: %s", ERR_error_string(ERR_get_error(), NULL));
- EVP_MD_CTX_
free
(ctx);
+ EVP_MD_CTX_
destroy
(ctx);
return false;
}
- EVP_MD_CTX_
free
(ctx);
+ EVP_MD_CTX_
destroy
(ctx);
}
memcpy(outdata, tmpdata, digest->maclength);