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),"
