summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index c938ae399..9155a8b70 100644
--- a/servconf.c
+++ b/servconf.c
@@ -114,6 +114,7 @@ initialize_server_options(ServerOptions *options)
114 options->password_authentication = -1; 114 options->password_authentication = -1;
115 options->kbd_interactive_authentication = -1; 115 options->kbd_interactive_authentication = -1;
116 options->challenge_response_authentication = -1; 116 options->challenge_response_authentication = -1;
117 options->permit_blacklisted_keys = -1;
117 options->permit_empty_passwd = -1; 118 options->permit_empty_passwd = -1;
118 options->permit_user_env = -1; 119 options->permit_user_env = -1;
119 options->use_login = -1; 120 options->use_login = -1;
@@ -257,6 +258,8 @@ fill_default_server_options(ServerOptions *options)
257 options->kbd_interactive_authentication = 0; 258 options->kbd_interactive_authentication = 0;
258 if (options->challenge_response_authentication == -1) 259 if (options->challenge_response_authentication == -1)
259 options->challenge_response_authentication = 1; 260 options->challenge_response_authentication = 1;
261 if (options->permit_blacklisted_keys == -1)
262 options->permit_blacklisted_keys = 0;
260 if (options->permit_empty_passwd == -1) 263 if (options->permit_empty_passwd == -1)
261 options->permit_empty_passwd = 0; 264 options->permit_empty_passwd = 0;
262 if (options->permit_user_env == -1) 265 if (options->permit_user_env == -1)
@@ -338,7 +341,7 @@ typedef enum {
338 sListenAddress, sAddressFamily, 341 sListenAddress, sAddressFamily,
339 sPrintMotd, sPrintLastLog, sIgnoreRhosts, 342 sPrintMotd, sPrintLastLog, sIgnoreRhosts,
340 sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, 343 sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost,
341 sStrictModes, sEmptyPasswd, sTCPKeepAlive, 344 sStrictModes, sPermitBlacklistedKeys, sEmptyPasswd, sTCPKeepAlive,
342 sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression, 345 sPermitUserEnvironment, sUseLogin, sAllowTcpForwarding, sCompression,
343 sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, 346 sRekeyLimit, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
344 sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile, 347 sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,
@@ -451,6 +454,7 @@ static struct {
451 { "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL }, 454 { "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL },
452 { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL }, 455 { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL },
453 { "strictmodes", sStrictModes, SSHCFG_GLOBAL }, 456 { "strictmodes", sStrictModes, SSHCFG_GLOBAL },
457 { "permitblacklistedkeys", sPermitBlacklistedKeys, SSHCFG_GLOBAL },
454 { "permitemptypasswords", sEmptyPasswd, SSHCFG_ALL }, 458 { "permitemptypasswords", sEmptyPasswd, SSHCFG_ALL },
455 { "permituserenvironment", sPermitUserEnvironment, SSHCFG_GLOBAL }, 459 { "permituserenvironment", sPermitUserEnvironment, SSHCFG_GLOBAL },
456 { "uselogin", sUseLogin, SSHCFG_GLOBAL }, 460 { "uselogin", sUseLogin, SSHCFG_GLOBAL },
@@ -1158,6 +1162,10 @@ process_server_config_line(ServerOptions *options, char *line,
1158 intptr = &options->tcp_keep_alive; 1162 intptr = &options->tcp_keep_alive;
1159 goto parse_flag; 1163 goto parse_flag;
1160 1164
1165 case sPermitBlacklistedKeys:
1166 intptr = &options->permit_blacklisted_keys;
1167 goto parse_flag;
1168
1161 case sEmptyPasswd: 1169 case sEmptyPasswd:
1162 intptr = &options->permit_empty_passwd; 1170 intptr = &options->permit_empty_passwd;
1163 goto parse_flag; 1171 goto parse_flag;
@@ -2036,6 +2044,7 @@ dump_config(ServerOptions *o)
2036 dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost); 2044 dump_cfg_fmtint(sX11UseLocalhost, o->x11_use_localhost);
2037 dump_cfg_fmtint(sStrictModes, o->strict_modes); 2045 dump_cfg_fmtint(sStrictModes, o->strict_modes);
2038 dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive); 2046 dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive);
2047 dump_cfg_fmtint(sPermitBlacklistedKeys, o->permit_blacklisted_keys);
2039 dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd); 2048 dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd);
2040 dump_cfg_fmtint(sPermitUserEnvironment, o->permit_user_env); 2049 dump_cfg_fmtint(sPermitUserEnvironment, o->permit_user_env);
2041 dump_cfg_fmtint(sUseLogin, o->use_login); 2050 dump_cfg_fmtint(sUseLogin, o->use_login);