]> 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)
committerBrad Smith <brad@comstyle.com>
Tue, 7 Nov 2023 12:42:06 +0000 (12:42 +0000)
The module will fail to load. Use proper function DTLS_method() with LibreSSL.

res/res_rtp_asterisk.c

index a527df2d1ac12f76177db135424be5cb3160c5f8..7a79de2c8d7388b3bad494150d7f7191e6c8306d 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();