aboutsummaryrefslogtreecommitdiff
path: root/src/libcrypto.c
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2017-07-10 17:20:33 -0400
committerAndreas Schneider <asn@cryptomilk.org>2017-07-13 19:28:59 +0200
commit25384e9558c2e79086340a4551d90c08c6efae82 (patch)
treee02058e76b636656cb0dd5327e021c6c73409a9d /src/libcrypto.c
parent0cb2974bd8c64913fe87caa2e3d7c4dc60c7242e (diff)
downloadlibssh-25384e9558c2e79086340a4551d90c08c6efae82.tar.gz
libssh-25384e9558c2e79086340a4551d90c08c6efae82.tar.xz
libssh-25384e9558c2e79086340a4551d90c08c6efae82.zip
libcrypto-compat: fix HMAC_CTX_free for OpenSSL < 1.1.0
On older OpenSSL versions, the EVP_MD_CTX fields within an HMAC_CTX structure are contained inlined (change here [1]): be sure to not try to free those fields on those builds. Found running the `pkd_hello` test with: valgrind ./pkd_hello -i1 -t torture_pkd_openssh_dsa_rsa_default ^ valgrind will cite "Invalid free() ..." errors which are present before this fix and absent after, when building with OpenSSL 1.0.1. [1] https://github.com/openssl/openssl/commit/6e59a892db781658c050e5217127c4147c116ac9 Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libcrypto.c')
0 files changed, 0 insertions, 0 deletions