[sr-dev] git:master:60f25fc4: tls: remove wrong TLSv1.3 statements from #ifdef block for openssl < 1.1.0

Henning Westerholt hw at gilawa.com
Thu Aug 18 12:33:16 CEST 2022


Module: kamailio
Branch: master
Commit: 60f25fc4b47222bac0eb09fbed93a1b63dcc54a4
URL: https://github.com/kamailio/kamailio/commit/60f25fc4b47222bac0eb09fbed93a1b63dcc54a4

Author: Henning Westerholt <hw at gilawa.com>
Committer: Henning Westerholt <hw at gilawa.com>
Date: 2022-08-18T10:32:47Z

tls: remove wrong TLSv1.3 statements from #ifdef block for openssl < 1.1.0

---

Modified: src/modules/tls/tls_init.c

---

Diff:  https://github.com/kamailio/kamailio/commit/60f25fc4b47222bac0eb09fbed93a1b63dcc54a4.diff
Patch: https://github.com/kamailio/kamailio/commit/60f25fc4b47222bac0eb09fbed93a1b63dcc54a4.patch

---

diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index 1b88aa03bc..9bbd0acb83 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -401,12 +401,6 @@ static void init_ssl_methods(void)
 	ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
-	ssl_methods[TLS_USE_TLSv1_3_cli - 1] = TLSv1_3_client_method();
-	ssl_methods[TLS_USE_TLSv1_3_srv - 1] = TLSv1_3_server_method();
-	ssl_methods[TLS_USE_TLSv1_3 - 1] = TLSv1_3_method();
-#endif
-
 	/* ranges of TLS versions (require a minimum TLS version) */
 	ssl_methods[TLS_USE_TLSv1_PLUS - 1] = (void*)TLS_OP_TLSv1_PLUS;
 
@@ -418,9 +412,6 @@ static void init_ssl_methods(void)
 	ssl_methods[TLS_USE_TLSv1_2_PLUS - 1] = (void*)TLS_OP_TLSv1_2_PLUS;
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
-	ssl_methods[TLS_USE_TLSv1_3_PLUS - 1] = (void*)TLS_OP_TLSv1_3_PLUS;
-#endif
 #else
 	/* openssl 1.1.0+ */
 	memset(sr_tls_methods, 0, sizeof(sr_tls_methods));




More information about the sr-dev mailing list