File: fix-ssl3.patch

package info (click to toggle)
foxeye 0.12.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,012 kB
  • sloc: ansic: 62,635; sh: 5,228; makefile: 740; yacc: 291; tcl: 239; sed: 16
file content (19 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (3)
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();