mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 20:55:26 +00:00
Merge "res_rtp_asterisk: Use latest DTLS version available by underlying platform." into 13
This commit is contained in:
@@ -1357,7 +1357,12 @@ static int ast_rtp_dtls_set_configuration(struct ast_rtp_instance *instance, con
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(rtp->ssl_ctx = SSL_CTX_new(DTLSv1_method()))) {
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10002000L
|
||||
rtp->ssl_ctx = SSL_CTX_new(DTLSv1_method());
|
||||
#else
|
||||
rtp->ssl_ctx = SSL_CTX_new(DTLS_method());
|
||||
#endif
|
||||
if (!rtp->ssl_ctx) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user