]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Added support for parsing obsolete setting ssl_disable.
authorTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 15:24:34 +0000 (18:24 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 15:24:34 +0000 (18:24 +0300)
--HG--
branch : HEAD

src/config/old-set-parser.c

index 5b355a9e7c68c21a947a6791f615a9ed6c579659..ace45c85eaa355dc7dc23bbe29ff10588993ee60 100644 (file)
@@ -122,6 +122,14 @@ old_settings_handle_root(struct config_parser_context *ctx,
                                         p, value);
                return TRUE;
        }
+       if (strcmp(key, "ssl_disable") == 0) {
+               if (strcasecmp(value, "yes") == 0)
+                       value = "no";
+               else if (strcasecmp(value, "no") == 0)
+                       value = "yes";
+               set_rename(ctx, key, "ssl", value);
+               return TRUE;
+       }
        if (strcmp(key, "dbox_rotate_size") == 0) {
                set_rename(ctx, key, "mdbox_rotate_size", value);
                return TRUE;