|
Lines 165-170
initialize_server_options(ServerOptions *options)
Link Here
|
| 165 |
options->fingerprint_hash = -1; |
165 |
options->fingerprint_hash = -1; |
| 166 |
options->disable_forwarding = -1; |
166 |
options->disable_forwarding = -1; |
| 167 |
options->expose_userauth_info = -1; |
167 |
options->expose_userauth_info = -1; |
|
|
168 |
options->bind_device = NULL; |
| 168 |
} |
169 |
} |
| 169 |
|
170 |
|
| 170 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
171 |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
|
Lines 396-402
typedef enum {
Link Here
|
| 396 |
sKerberosGetAFSToken, |
397 |
sKerberosGetAFSToken, |
| 397 |
sKerberosTgtPassing, sChallengeResponseAuthentication, |
398 |
sKerberosTgtPassing, sChallengeResponseAuthentication, |
| 398 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
399 |
sPasswordAuthentication, sKbdInteractiveAuthentication, |
| 399 |
sListenAddress, sAddressFamily, |
400 |
sListenAddress, sAddressFamily, sBindDevice, |
| 400 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
401 |
sPrintMotd, sPrintLastLog, sIgnoreRhosts, |
| 401 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
402 |
sX11Forwarding, sX11DisplayOffset, sX11UseLocalhost, |
| 402 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
403 |
sPermitTTY, sStrictModes, sEmptyPasswd, sTCPKeepAlive, |
|
Lines 566-571
static struct {
Link Here
|
| 566 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
567 |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
| 567 |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
568 |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
| 568 |
{ "exposeauthinfo", sExposeAuthInfo, SSHCFG_ALL }, |
569 |
{ "exposeauthinfo", sExposeAuthInfo, SSHCFG_ALL }, |
|
|
570 |
{ "binddevice", sBindDevice }, |
| 569 |
{ NULL, sBadOption, 0 } |
571 |
{ NULL, sBadOption, 0 } |
| 570 |
}; |
572 |
}; |
| 571 |
|
573 |
|
|
Lines 1879-1884
process_server_config_line(ServerOptions *options, char *line,
Link Here
|
| 1879 |
options->fingerprint_hash = value; |
1881 |
options->fingerprint_hash = value; |
| 1880 |
break; |
1882 |
break; |
| 1881 |
|
1883 |
|
|
|
1884 |
case sBindDevice: |
| 1885 |
arg = strdelim(&cp); |
| 1886 |
if (!arg || *arg == '\0') |
| 1887 |
fatal("%s line %d: Missing argument.", filename, linenum); |
| 1888 |
if (options->bind_device == NULL) |
| 1889 |
options->bind_device = xstrdup(arg); |
| 1890 |
break; |
| 1891 |
|
| 1882 |
case sExposeAuthInfo: |
1892 |
case sExposeAuthInfo: |
| 1883 |
intptr = &options->expose_userauth_info; |
1893 |
intptr = &options->expose_userauth_info; |
| 1884 |
goto parse_flag; |
1894 |
goto parse_flag; |
|
Lines 2350-2355
dump_config(ServerOptions *o)
Link Here
|
| 2350 |
o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
2360 |
o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
| 2351 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
2361 |
dump_cfg_string(sPubkeyAcceptedKeyTypes, o->pubkey_key_types ? |
| 2352 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
2362 |
o->pubkey_key_types : KEX_DEFAULT_PK_ALG); |
|
|
2363 |
dump_cfg_string(sBindDevice, o->bind_device); |
| 2353 |
|
2364 |
|
| 2354 |
/* string arguments requiring a lookup */ |
2365 |
/* string arguments requiring a lookup */ |
| 2355 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |
2366 |
dump_cfg_string(sLogLevel, log_level_name(o->log_level)); |