1 From 0b17cf6e39064b008792811a6babf4cd75ac7744 Mon Sep 17 00:00:00 2001
2 From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3 Date: Mon, 25 Feb 2019 10:48:48 -0300
4 Subject: [PATCH] tls.c: allow build with no openssl engine support
6 This avoids an ENGINE_cleanup call if openssl was compiled without
9 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
11 diff --git a/src/main/tls.c b/src/main/tls.c
12 index 73f0e3a3e8..9726953234 100644
15 @@ -2743,7 +2743,9 @@ void tls_global_cleanup(void)
16 #elif OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
17 ERR_remove_thread_state(NULL);
19 +#ifndef OPENSSL_NO_ENGINE
22 CONF_modules_unload(1);