<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7526">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Add TLSv1.1 and TLSv1.2 support<br><br>Change-Id: Icf4975d785d6bfb8f30ac7ffa695a0adf9382dac<br>---<br>M res/res_pjsip/config_transport.c<br>1 file changed, 14 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/7526/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c<br>index 2f29456..9f7f94e 100644<br>--- a/res/res_pjsip/config_transport.c<br>+++ b/res/res_pjsip/config_transport.c<br>@@ -917,6 +917,14 @@<br>           state->tls.method = PJSIP_SSL_UNSPECIFIED_METHOD;<br>  } else if (!strcasecmp(var->value, "tlsv1")) {<br>           state->tls.method = PJSIP_TLSV1_METHOD;<br>+#ifdef PJSIP_TLSV1_1_METHOD<br>+     } else if (!strcasecmp(var->value, "tlsv1_1")) {<br>+                state->tls.method = PJSIP_TLSV1_1_METHOD;<br>+#endif<br>+#ifdef PJSIP_TLSV1_2_METHOD<br>+  } else if (!strcasecmp(var->value, "tlsv1_2")) {<br>+                state->tls.method = PJSIP_TLSV1_2_METHOD;<br>+#endif<br>         } else if (!strcasecmp(var->value, "sslv2")) {<br>           state->tls.method = PJSIP_SSLV2_METHOD;<br>    } else if (!strcasecmp(var->value, "sslv3")) {<br>@@ -933,6 +941,12 @@<br> static const char *tls_method_map[] = {<br>   [PJSIP_SSL_UNSPECIFIED_METHOD] = "unspecified",<br>     [PJSIP_TLSV1_METHOD] = "tlsv1",<br>+#ifdef PJSIP_TLSV1_1_METHOD<br>+      [PJSIP_TLSV1_1_METHOD] = "tlsv1_1",<br>+#endif<br>+#ifdef PJSIP_TLSV1_2_METHOD<br>+ [PJSIP_TLSV1_2_METHOD] = "tlsv1_2",<br>+#endif<br>        [PJSIP_SSLV2_METHOD] = "sslv2",<br>     [PJSIP_SSLV3_METHOD] = "sslv3",<br>     [PJSIP_SSLV23_METHOD] = "sslv23",<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7526">change 7526</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7526"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icf4975d785d6bfb8f30ac7ffa695a0adf9382dac </div>
<div style="display:none"> Gerrit-Change-Number: 7526 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>