File: Check-only-major-OpenSSL-version.patch

package info (click to toggle)
kamailio 6.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,224 kB
  • sloc: ansic: 858,902; xml: 203,335; makefile: 9,296; sh: 8,928; sql: 8,571; yacc: 4,121; python: 3,086; perl: 2,955; java: 449; cpp: 289; javascript: 270; php: 258; ruby: 248; awk: 27
file content (18 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Bastian Germann <bage@debian.org>
Date: Fri, 22 Aug 2025 13:15:18 +0200
Subject: Check only major OpenSSL version

The version check was written during OpenSSL 0.9 era.
It is not needed in Debian and only getting in the way.
---
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -866,7 +866,7 @@ int tls_h_mod_init_f(void)
 	 * (e.g. 0.9.8a & 0.9.8c are ok, but 0.9.8 and 0.9.9x are not)
 	 * - values is represented as 0xMMNNFFPPS: major minor fix patch status
 	 *   0x00090705f == 0.9.7e release */
-	if((ssl_version >> 12) != (OPENSSL_VERSION_NUMBER >> 12)) {
+	if((ssl_version >> 28) != (OPENSSL_VERSION_NUMBER >> 28)) {
 		LM_CRIT("installed openssl library"
 				" version is too different from the library the " NAME " tls"
 				" module was compiled with: installed \"%s\" (0x%08lx),"