Module: kamailio Branch: master Commit: 3dbcdc956cdefd0914aed373d79d597c66805f4f URL: https://github.com/kamailio/kamailio/commit/3dbcdc956cdefd0914aed373d79d597c66805f4f
Author: S-P Chan <[email protected]> Committer: S-P Chan <[email protected]> Date: 2026-05-04T10:46:08+08:00 tls: fix for compilation on OpenSSL < 3.2 --- Modified: src/modules/tls/tls_server.c --- Diff: https://github.com/kamailio/kamailio/commit/3dbcdc956cdefd0914aed373d79d597c66805f4f.diff Patch: https://github.com/kamailio/kamailio/commit/3dbcdc956cdefd0914aed373d79d597c66805f4f.patch --- diff --git a/src/modules/tls/tls_server.c b/src/modules/tls/tls_server.c index 2125e27530f..9abf3efd78c 100644 --- a/src/modules/tls/tls_server.c +++ b/src/modules/tls/tls_server.c @@ -581,6 +581,7 @@ static void tls_build_ssl_cache(struct tls_extra_data *tls_c, X509 *cert) } tls_c->ssl_cipher_bits = SSL_CIPHER_get_bits(cipher, &alg_bits); +#if OPENSSL_VERSION_NUMBER >= 0x30200000L /* Improve for TLS 1.3 as SSL_CIPHER_description shows * Kx=any Au=any * @@ -610,6 +611,7 @@ static void tls_build_ssl_cache(struct tls_extra_data *tls_c, X509 *cert) snprintf(tls_c->ssl_cipher_desc + cur_len, max_len - cur_len - 1, "TLSv1.3: Group=%s Au=%s\n", group_name, au_str); } +#endif /* OPENSSL_VERSION_NUMBER */ } my_cert = SSL_get_certificate(ssl); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
