res_rtp_asterisk.c: Fix runtime issue with LibreSSL

The module will fail to load. Use proper function DTLS_method() with LibreSSL.
This commit is contained in:
Brad Smith 2023-11-02 02:26:09 -04:00
parent 5046620fa3
commit 65d38c8104
1 changed files with 1 additions and 1 deletions

View 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();