]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk.c: Fix runtime issue with LibreSSL
authorBrad Smith <brad@comstyle.com>
Thu, 2 Nov 2023 06:26:09 +0000 (02:26 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:32:13 +0000 (18:32 +0000)
The module will fail to load. Use proper function DTLS_method() with LibreSSL.

(cherry picked from commit 1d9c5faeb399305e62c310d432ca9553b6704b8d)

res/res_rtp_asterisk.c

index c641641bbff252ce53d8f1a4a2b1606c67f54619..ff168066f1d7f127f53c29ad52f1c0c5395bf471 100644 (file)
@@ -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();