version 1.52, 2000/10/11 20:14:39 |
version 1.53, 2000/10/14 12:12:09 |
|
|
#endif |
#endif |
options->permit_empty_passwd = -1; |
options->permit_empty_passwd = -1; |
options->use_login = -1; |
options->use_login = -1; |
|
options->allow_tcp_forwarding = -1; |
options->num_allow_users = 0; |
options->num_allow_users = 0; |
options->num_deny_users = 0; |
options->num_deny_users = 0; |
options->num_allow_groups = 0; |
options->num_allow_groups = 0; |
|
|
options->permit_empty_passwd = 0; |
options->permit_empty_passwd = 0; |
if (options->use_login == -1) |
if (options->use_login == -1) |
options->use_login = 0; |
options->use_login = 0; |
|
if (options->allow_tcp_forwarding == -1) |
|
options->allow_tcp_forwarding = 1; |
if (options->protocol == SSH_PROTO_UNKNOWN) |
if (options->protocol == SSH_PROTO_UNKNOWN) |
options->protocol = SSH_PROTO_1|SSH_PROTO_2; |
options->protocol = SSH_PROTO_1|SSH_PROTO_2; |
if (options->gateway_ports == -1) |
if (options->gateway_ports == -1) |
|
|
sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, |
sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress, |
sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset, |
sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset, |
sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail, |
sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail, |
sUseLogin, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
sUseLogin, sAllowTcpForwarding, |
|
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
sIgnoreUserKnownHosts, sHostDSAKeyFile, sCiphers, sProtocol, sPidFile, |
sIgnoreUserKnownHosts, sHostDSAKeyFile, sCiphers, sProtocol, sPidFile, |
sGatewayPorts, sDSAAuthentication, sXAuthLocation, sSubsystem, sMaxStartups |
sGatewayPorts, sDSAAuthentication, sXAuthLocation, sSubsystem, sMaxStartups |
} ServerOpCodes; |
} ServerOpCodes; |
|
|
{ "uselogin", sUseLogin }, |
{ "uselogin", sUseLogin }, |
{ "randomseed", sRandomSeedFile }, |
{ "randomseed", sRandomSeedFile }, |
{ "keepalive", sKeepAlives }, |
{ "keepalive", sKeepAlives }, |
|
{ "allowtcpforwarding", sAllowTcpForwarding }, |
{ "allowusers", sAllowUsers }, |
{ "allowusers", sAllowUsers }, |
{ "denyusers", sDenyUsers }, |
{ "denyusers", sDenyUsers }, |
{ "allowgroups", sAllowGroups }, |
{ "allowgroups", sAllowGroups }, |
|
|
if (*intptr == -1) |
if (*intptr == -1) |
*intptr = (LogLevel) value; |
*intptr = (LogLevel) value; |
break; |
break; |
|
|
|
case sAllowTcpForwarding: |
|
intptr = &options->allow_tcp_forwarding; |
|
goto parse_flag; |
|
|
case sAllowUsers: |
case sAllowUsers: |
while ((arg = strdelim(&cp)) && *arg != '\0') { |
while ((arg = strdelim(&cp)) && *arg != '\0') { |