usbmuxd: Update to latest git
[feed/packages.git] / net / freeradius3 / patches / 004-tls.c-allow-build-with-no-openssl-engine-support.patch
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
5
6 This avoids an ENGINE_cleanup call if openssl was compiled without
7 engine support.
8
9 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
10
11 diff --git a/src/main/tls.c b/src/main/tls.c
12 index 73f0e3a3e8..9726953234 100644
13 --- a/src/main/tls.c
14 +++ b/src/main/tls.c
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);
18 #endif
19 +#ifndef OPENSSL_NO_ENGINE
20 ENGINE_cleanup();
21 +#endif
22 CONF_modules_unload(1);
23 ERR_free_strings();
24 EVP_cleanup();