changeset 11168:a6b050cc4a9a HEAD

config: Added support for parsing obsolete setting ssl_disable.
author Timo Sirainen <tss@iki.fi>
date Fri, 16 Apr 2010 18:24:34 +0300
parents c2f00a85a177
children 0eb423848dc1
files src/config/old-set-parser.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/old-set-parser.c	Fri Apr 16 17:53:41 2010 +0300
+++ b/src/config/old-set-parser.c	Fri Apr 16 18:24:34 2010 +0300
@@ -122,6 +122,14 @@
 					 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;