res_rtp_asterisk.c: Fix runtime issue with LibreSSL

The module will fail to load. Use proper function DTLS_method() with LibreSSL.
pull/605/head
Brad Smith 2 years ago
parent 72c6e95ed1
commit 9c70df1bb7

@ -1902,7 +1902,7 @@ static int dtls_setup_rtcp(struct ast_rtp_instance *instance)
static const SSL_METHOD *get_dtls_method(void) 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(); return DTLSv1_method();
#else #else
return DTLS_method(); return DTLS_method();

Loading…
Cancel
Save