From 6ec59e1e04acd2c69d58f950b75612ebfd6d3004 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 2 Nov 2023 02:26:09 -0400 Subject: [PATCH] res_rtp_asterisk.c: Fix runtime issue with LibreSSL The module will fail to load. Use proper function DTLS_method() with LibreSSL. --- res/res_rtp_asterisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index a527df2d1a..7a79de2c8d 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();