summaryrefslogtreecommitdiffstats
path: root/debian/patches/10_openssl_version_check.diff
blob: 2be413f2cb20524c34db81ff23086d6998ebbbf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: LaMont Jones <lamont@debian.org>
Subject: Disable openssl version check
Forwarded: not-needed
Index: postfix/src/tls/tls_misc.c
===================================================================
--- postfix.orig/src/tls/tls_misc.c
+++ postfix/src/tls/tls_misc.c
@@ -1431,26 +1431,7 @@ static void tls_version_split(unsigned l
 
 void    tls_check_version(void)
 {
-    TLS_VINFO hdr_info;
-    TLS_VINFO lib_info;
-
-    tls_version_split(OPENSSL_VERSION_NUMBER, &hdr_info);
-    tls_version_split(OpenSSL_version_num(), &lib_info);
-
-    /*
-     * Warn if run-time library is different from compile-time library,
-     * allowing later run-time "micro" versions starting with 1.1.0.
-     */
-    if (lib_info.major != hdr_info.major
-	|| lib_info.minor != hdr_info.minor
-	|| (lib_info.micro != hdr_info.micro
-	    && (lib_info.micro < hdr_info.micro
-		|| hdr_info.major == 0
-		|| (hdr_info.major == 1 && hdr_info.minor == 0))))
-	msg_warn("run-time library vs. compile-time header version mismatch: "
-	     "OpenSSL %d.%d.%d may not be compatible with OpenSSL %d.%d.%d",
-		 lib_info.major, lib_info.minor, lib_info.micro,
-		 hdr_info.major, hdr_info.minor, hdr_info.micro);
+	/* Debian will change the soname if openssl is ever incompatible. */
 }
 
 /* tls_compile_version - compile-time OpenSSL version */