Module: kamailio Branch: master Commit: dc3d035f75d414c96889aefedd316a5a28bb26ec URL: https://github.com/kamailio/kamailio/commit/dc3d035f75d414c96889aefedd316a5a28bb26ec
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2023-09-26T11:18:50+02:00 cdp: tls v1.3 only for libssl 1.1.1f --- Modified: src/modules/cdp/cdp_tls.c --- Diff: https://github.com/kamailio/kamailio/commit/dc3d035f75d414c96889aefedd316a5a28bb26ec.diff Patch: https://github.com/kamailio/kamailio/commit/dc3d035f75d414c96889aefedd316a5a28bb26ec.patch --- diff --git a/src/modules/cdp/cdp_tls.c b/src/modules/cdp/cdp_tls.c index c2947a486ca..6c7fb9a1f45 100644 --- a/src/modules/cdp/cdp_tls.c +++ b/src/modules/cdp/cdp_tls.c @@ -48,6 +48,7 @@ void init_ssl_methods(void) tls_methods[TLS_USE_TLSv1_2 - 1].TLSMethodMin = TLS1_2_VERSION; tls_methods[TLS_USE_TLSv1_2 - 1].TLSMethodMax = TLS1_2_VERSION; +#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER) tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethod = TLS_client_method(); tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethodMin = TLS1_3_VERSION; tls_methods[TLS_USE_TLSv1_3_cli - 1].TLSMethodMax = TLS1_3_VERSION; @@ -57,6 +58,7 @@ void init_ssl_methods(void) tls_methods[TLS_USE_TLSv1_3 - 1].TLSMethod = TLS_method(); tls_methods[TLS_USE_TLSv1_3 - 1].TLSMethodMin = TLS1_3_VERSION; tls_methods[TLS_USE_TLSv1_3 - 1].TLSMethodMax = TLS1_3_VERSION; +#endif /* ranges of TLS versions (require a minimum TLS version) */ tls_methods[TLS_USE_TLSv1_PLUS - 1].TLSMethod = TLS_method(); @@ -68,8 +70,10 @@ void init_ssl_methods(void) tls_methods[TLS_USE_TLSv1_2_PLUS - 1].TLSMethod = TLS_method(); tls_methods[TLS_USE_TLSv1_2_PLUS - 1].TLSMethodMin = TLS1_2_VERSION; +#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER) tls_methods[TLS_USE_TLSv1_3_PLUS - 1].TLSMethod = TLS_method(); tls_methods[TLS_USE_TLSv1_3_PLUS - 1].TLSMethodMin = TLS1_3_VERSION; +#endif } /* _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org