]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10022: [mod_sofia] verify-profile 'none' not parsed for TLS #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Feb 2017 17:25:29 +0000 (11:25 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Feb 2017 17:25:29 +0000 (11:25 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c

index ef2a47b5c26922ff61e09c1560939e6ac2e916db..93e45ed8db96f25fa406612ddf61c0e875967ee3 100644 (file)
@@ -315,6 +315,9 @@ enum tport_tls_verify_policy sofia_glue_str2tls_verify_policy(const char * str){
                }
                if (!strncasecmp(ptr_cur, "in",len)) {
                        ret |= TPTLS_VERIFY_IN;
+               } else if (!strncasecmp(ptr_cur, "none",len)) {
+                       ret = TPTLS_VERIFY_NONE;
+                       break;
                } else if (!strncasecmp(ptr_cur, "out",len)) {
                        ret |= TPTLS_VERIFY_OUT;
                } else if (!strncasecmp(ptr_cur, "all",len)) {