From: Brad Smith Date: Thu, 2 Nov 2023 06:26:09 +0000 (-0400) Subject: res_rtp_asterisk.c: Fix runtime issue with LibreSSL X-Git-Tag: 18.21.0-rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29934d21eb77b4d819666fb5ec93dbbd0cd126d8;p=thirdparty%2Fasterisk.git res_rtp_asterisk.c: Fix runtime issue with LibreSSL The module will fail to load. Use proper function DTLS_method() with LibreSSL. (cherry picked from commit 9c70df1bb7d8334758d19f481d5b89d09b289bfe) --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index c641641bbf..ff168066f1 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1902,7 +1902,7 @@ static int dtls_setup_rtcp(struct ast_rtp_instance *instance) static const SSL_METHOD *get_dtls_method(void) { -#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10002000L return DTLSv1_method(); #else return DTLS_method();