]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Default to TLSv1 through TLSv1.2 if unspecified
authorTravis Cross <tc@traviscross.com>
Thu, 6 Feb 2014 02:34:27 +0000 (02:34 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 6 Feb 2014 02:45:51 +0000 (02:45 +0000)
src/mod/endpoints/mod_sofia/sofia.c

index 86cda022fc59405a638fe00d4951752e0fe9d2c2..172df99e23d84f983489893a856b63e460e0322e 100644 (file)
@@ -3658,7 +3658,9 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                        profile->sip_force_expires = 0;
                                        profile->sip_expires_max_deviation = 0;
                                        profile->sip_subscription_max_deviation = 0;
-                                       profile->tls_version = 0;
+                                       profile->tls_version = SOFIA_TLS_VERSION_TLSv1;
+                                       profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
+                                       profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
                                        profile->tls_timeout = 300;
                                        profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
                                        profile->server_rport_level = 1;
@@ -4580,6 +4582,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                                profile->tls_verify_in_subjects_str = switch_core_strdup(profile->pool, val);
                                        } else if (!strcasecmp(var, "tls-version")) {
                                                char *ps = val, *pe;
+                                               profile->tls_version = 0;
                                                while (1) {
                                                        int n;
                                                        pe = strchr(ps,',');