From affb916edd78d041cfdfa16c72d7744eb734ceca Mon Sep 17 00:00:00 2001 From: Ravi Kant Sharma Date: Fri, 17 Jul 2026 16:41:11 +0200 Subject: [PATCH] Fix build error with OpenSSL 4.0 --- libsofia-sip-ua/stun/stun.c | 2 +- m4/sac-openssl.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsofia-sip-ua/stun/stun.c b/libsofia-sip-ua/stun/stun.c index 22ca7c762..aa4b57457 100644 --- a/libsofia-sip-ua/stun/stun.c +++ b/libsofia-sip-ua/stun/stun.c @@ -1368,7 +1368,7 @@ int stun_tls_callback(su_root_magic_t *m, su_wait_t *w, su_wakeup_arg_t *arg) /* openssl initiation */ SSLeay_add_ssl_algorithms(); SSL_load_error_strings(); - ctx = SSL_CTX_new(TLSv1_client_method()); + ctx = SSL_CTX_new(TLS_client_method()); self->sh_ctx = ctx; if (ctx == NULL) { diff --git a/m4/sac-openssl.m4 b/m4/sac-openssl.m4 index 289d3e132..76ba9f2f2 100644 --- a/m4/sac-openssl.m4 +++ b/m4/sac-openssl.m4 @@ -30,7 +30,7 @@ else HAVE_OPENSSL=0 AC_MSG_WARN(OpenSSL crypto library was not found)) - AC_CHECK_LIB(ssl, TLSv1_method,, + AC_CHECK_LIB(ssl, TLS_method,, HAVE_TLS=0 AC_MSG_WARN(OpenSSL protocol library was not found)) ],[AC_MSG_WARN(OpenSSL include files were not found)],[#include ])