diff options
author | Joshua Colp <jcolp@digium.com> | 2016-06-21 19:49:20 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-06-21 19:49:20 -0500 |
commit | 6a2deb4d21ddb150a41d0ca6ac948128db81c1a0 (patch) | |
tree | f0dc4bdf146ffd41a73e26ff9f2cf9eae2672f49 | |
parent | 52808138465069675b0c624ce975ecefc6b87ed6 (diff) | |
parent | ef97911a1c0f380d17df3b92c9b5805dd3dbd6b5 (diff) |
Merge "res_rtp_asterisk: Use latest DTLS version available by underlying platform." into 13
-rw-r--r-- | res/res_rtp_asterisk.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index b2ecf5962..7665b5cc0 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -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; } |