mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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:
committed by
asterisk-org-access-app[bot]
parent
4657163c56
commit
6ec59e1e04
@@ -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();
|
||||
|
Reference in New Issue
Block a user