aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSahana Prasad <sahana@redhat.com>2019-12-18 22:43:55 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-20 14:40:51 +0100
commit86a0dfa65b55e1beee98d4709f91bac50068711d (patch)
tree0744d6b2d5263e338587084e7199bb6e3dfd0b0a /src
parent89ec52f5b106a2a03e767b91150d76dffb545e31 (diff)
downloadlibssh-86a0dfa65b55e1beee98d4709f91bac50068711d.tar.gz
libssh-86a0dfa65b55e1beee98d4709f91bac50068711d.tar.xz
libssh-86a0dfa65b55e1beee98d4709f91bac50068711d.zip
src: Adds the Engine header file and invokes cleanup of the engine
Signed-off-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcrypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index 9ef00cb7..dc3a24d5 100644
--- a/src/libcrypto.c
+++ b/src/libcrypto.c
@@ -43,6 +43,7 @@
#include <openssl/hmac.h>
#include <openssl/opensslv.h>
#include <openssl/rand.h>
+#include <openssl/engine.h>
#include "libcrypto-compat.h"
@@ -1129,6 +1130,7 @@ void ssh_crypto_finalize(void)
return;
}
+ ENGINE_cleanup();
#if OPENSSL_VERSION_NUMBER < 0x10100000L
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();