|
Lines 98-104
Link Here
|
| 98 |
options->kbd_interactive_authentication = -1; |
98 |
options->kbd_interactive_authentication = -1; |
| 99 |
options->challenge_response_authentication = -1; |
99 |
options->challenge_response_authentication = -1; |
| 100 |
options->permit_empty_passwd = -1; |
100 |
options->permit_empty_passwd = -1; |
| 101 |
options->permit_user_env = -1; |
101 |
options->permit_user_env = NULL; |
| 102 |
options->use_login = -1; |
102 |
options->use_login = -1; |
| 103 |
options->compression = -1; |
103 |
options->compression = -1; |
| 104 |
options->allow_tcp_forwarding = -1; |
104 |
options->allow_tcp_forwarding = -1; |
|
Lines 224-231
Link Here
|
| 224 |
options->challenge_response_authentication = 1; |
224 |
options->challenge_response_authentication = 1; |
| 225 |
if (options->permit_empty_passwd == -1) |
225 |
if (options->permit_empty_passwd == -1) |
| 226 |
options->permit_empty_passwd = 0; |
226 |
options->permit_empty_passwd = 0; |
| 227 |
if (options->permit_user_env == -1) |
|
|
| 228 |
options->permit_user_env = 0; |
| 229 |
if (options->use_login == -1) |
227 |
if (options->use_login == -1) |
| 230 |
options->use_login = 0; |
228 |
options->use_login = 0; |
| 231 |
if (options->compression == -1) |
229 |
if (options->compression == -1) |
|
Lines 980-989
Link Here
|
| 980 |
intptr = &options->permit_empty_passwd; |
978 |
intptr = &options->permit_empty_passwd; |
| 981 |
goto parse_flag; |
979 |
goto parse_flag; |
| 982 |
|
980 |
|
| 983 |
case sPermitUserEnvironment: |
981 |
case sPermitUserEnvironment: |
| 984 |
intptr = &options->permit_user_env; |
982 |
arg = strdelim(&cp); |
| 985 |
goto parse_flag; |
983 |
if (!arg || *arg == '\0') |
|
|
984 |
fatal("%s line %d: missing yes/no/value argument.", |
| 985 |
filename, linenum); |
| 986 |
|
986 |
|
|
|
987 |
if (strcmp(arg, "no") == 0) |
| 988 |
return 0; |
| 989 |
else if (*activep && options->permit_user_env == NULL) |
| 990 |
options->permit_user_env = xstrdup(arg); |
| 991 |
return 0; |
| 992 |
|
| 987 |
case sUseLogin: |
993 |
case sUseLogin: |
| 988 |
intptr = &options->use_login; |
994 |
intptr = &options->use_login; |
| 989 |
goto parse_flag; |
995 |
goto parse_flag; |
|
Lines 1461-1466
Link Here
|
| 1461 |
M_CP_STROPT(chroot_directory); |
1467 |
M_CP_STROPT(chroot_directory); |
| 1462 |
M_CP_STROPT(trusted_user_ca_keys); |
1468 |
M_CP_STROPT(trusted_user_ca_keys); |
| 1463 |
M_CP_STROPT(revoked_keys_file); |
1469 |
M_CP_STROPT(revoked_keys_file); |
|
|
1470 |
M_CP_STROPT(permit_user_env); |
| 1464 |
} |
1471 |
} |
| 1465 |
|
1472 |
|
| 1466 |
#undef M_CP_INTOPT |
1473 |
#undef M_CP_INTOPT |
|
Lines 1662-1668
Link Here
|
| 1662 |
dump_cfg_fmtint(sStrictModes, o->strict_modes); |
1669 |
dump_cfg_fmtint(sStrictModes, o->strict_modes); |
| 1663 |
dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive); |
1670 |
dump_cfg_fmtint(sTCPKeepAlive, o->tcp_keep_alive); |
| 1664 |
dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd); |
1671 |
dump_cfg_fmtint(sEmptyPasswd, o->permit_empty_passwd); |
| 1665 |
dump_cfg_fmtint(sPermitUserEnvironment, o->permit_user_env); |
|
|
| 1666 |
dump_cfg_fmtint(sUseLogin, o->use_login); |
1672 |
dump_cfg_fmtint(sUseLogin, o->use_login); |
| 1667 |
dump_cfg_fmtint(sCompression, o->compression); |
1673 |
dump_cfg_fmtint(sCompression, o->compression); |
| 1668 |
dump_cfg_fmtint(sGatewayPorts, o->gateway_ports); |
1674 |
dump_cfg_fmtint(sGatewayPorts, o->gateway_ports); |
|
Lines 1682-1687
Link Here
|
| 1682 |
dump_cfg_string(sChrootDirectory, o->chroot_directory); |
1688 |
dump_cfg_string(sChrootDirectory, o->chroot_directory); |
| 1683 |
dump_cfg_string(sTrustedUserCAKeys, o->trusted_user_ca_keys); |
1689 |
dump_cfg_string(sTrustedUserCAKeys, o->trusted_user_ca_keys); |
| 1684 |
dump_cfg_string(sRevokedKeys, o->revoked_keys_file); |
1690 |
dump_cfg_string(sRevokedKeys, o->revoked_keys_file); |
|
|
1691 |
dump_cfg_string(sPermitUserEnvironment, o->permit_user_env); |
| 1685 |
|
1692 |
|
| 1686 |
/* string arguments requiring a lookup */ |
1693 |
/* string arguments requiring a lookup */ |
| 1687 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
1694 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |