1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Fix build with OpenSSL 3.0
Since 3.0 version the processing of old features like FIPS was changed.
This patch should be added into next upstream version.
Author: Andriy Grytsenko <andrej@rep.kiev.ua>
Bug-Debian: https://bugs.debian.org/996276
Forwarded: not-needed
Last-Update: 2022-05-11
--- a/modules/ssl/openssl.c
+++ b/modules/ssl/openssl.c
@@ -446,7 +446,7 @@
/* deinit library */
#if OPENSSL_VERSION_NUMBER < 0x10100000L
ERR_remove_state(0);
-#else
+#elif OPENSSL_VERSION_NUMBER < 0x30000000L
FIPS_mode_set(0);
#endif
ENGINE_cleanup();
|