[Asterisk-code-review] res rtp asterisk: Use latest DTLS version available by under... (asterisk[13])

Alexander Traud asteriskteam at digium.com
Tue Jun 21 07:13:51 CDT 2016


Alexander Traud has uploaded a new change for review.

  https://gerrit.asterisk.org/3054

Change subject: res_rtp_asterisk: Use latest DTLS version available by underlying platform.
......................................................................

res_rtp_asterisk: Use latest DTLS version available by underlying platform.

Do not use DTLSv1_method() but DTLS_method() when available in OpenSSL of the
underlying platform. This change enables DTLS 1.2 since OpenSSL 1.0.2, for
WebRTC (DTLS-SRTP via SIP-over-WebSockets). This change enables AEAD-based
cipher-suites.

ASTERISK-26130 #close

Change-Id: I41f24448d6d2953e8bdb97c9f4a6bc8a8f055fd0
---
M res/res_rtp_asterisk.c
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/54/3054/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index b2ecf59..18f6e02 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -1357,7 +1357,11 @@
 		return 0;
 	}
 
+#if OPENSSL_VERSION_NUMBER < 0x10002000L
 	if (!(rtp->ssl_ctx = SSL_CTX_new(DTLSv1_method()))) {
+#else
+	if (!(rtp->ssl_ctx = SSL_CTX_new(DTLS_method()))) {
+#endif
 		return -1;
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/3054
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I41f24448d6d2953e8bdb97c9f4a6bc8a8f055fd0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>



More information about the asterisk-code-review mailing list