|
Lines 129-134
initialize_server_options(ServerOptions *options)
Link Here
|
| 129 |
options->gss_authentication=-1; |
129 |
options->gss_authentication=-1; |
| 130 |
options->gss_cleanup_creds = -1; |
130 |
options->gss_cleanup_creds = -1; |
| 131 |
options->gss_strict_acceptor = -1; |
131 |
options->gss_strict_acceptor = -1; |
|
|
132 |
options->gss_required_auth_indicators = NULL; |
| 132 |
options->password_authentication = -1; |
133 |
options->password_authentication = -1; |
| 133 |
options->kbd_interactive_authentication = -1; |
134 |
options->kbd_interactive_authentication = -1; |
| 134 |
options->challenge_response_authentication = -1; |
135 |
options->challenge_response_authentication = -1; |
|
Lines 369-374
fill_default_server_options(ServerOptions *options)
Link Here
|
| 369 |
CLEAR_ON_NONE(options->authorized_principals_file); |
370 |
CLEAR_ON_NONE(options->authorized_principals_file); |
| 370 |
CLEAR_ON_NONE(options->adm_forced_command); |
371 |
CLEAR_ON_NONE(options->adm_forced_command); |
| 371 |
CLEAR_ON_NONE(options->chroot_directory); |
372 |
CLEAR_ON_NONE(options->chroot_directory); |
|
|
373 |
CLEAR_ON_NONE(options->gss_required_auth_indicators); |
| 372 |
for (i = 0; i < options->num_host_key_files; i++) |
374 |
for (i = 0; i < options->num_host_key_files; i++) |
| 373 |
CLEAR_ON_NONE(options->host_key_files[i]); |
375 |
CLEAR_ON_NONE(options->host_key_files[i]); |
| 374 |
for (i = 0; i < options->num_host_cert_files; i++) |
376 |
for (i = 0; i < options->num_host_cert_files; i++) |
|
Lines 428-434
typedef enum {
Link Here
|
| 428 |
sHostKeyAlgorithms, |
430 |
sHostKeyAlgorithms, |
| 429 |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
431 |
sClientAliveInterval, sClientAliveCountMax, sAuthorizedKeysFile, |
| 430 |
sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, |
432 |
sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, |
| 431 |
sAcceptEnv, sPermitTunnel, |
433 |
sGssRequiredAuthIndicators, sAcceptEnv, sPermitTunnel, |
| 432 |
sMatch, sPermitOpen, sForceCommand, sChrootDirectory, |
434 |
sMatch, sPermitOpen, sForceCommand, sChrootDirectory, |
| 433 |
sUsePrivilegeSeparation, sAllowAgentForwarding, |
435 |
sUsePrivilegeSeparation, sAllowAgentForwarding, |
| 434 |
sHostCertificate, sInclude, |
436 |
sHostCertificate, sInclude, |
|
Lines 504-513
static struct {
Link Here
|
| 504 |
{ "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, |
506 |
{ "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, |
| 505 |
{ "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL }, |
507 |
{ "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL }, |
| 506 |
{ "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL }, |
508 |
{ "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL }, |
|
|
509 |
{ "gssapirequiredauthindicators", sGssRequiredAuthIndicators, SSHCFG_GLOBAL }, |
| 507 |
#else |
510 |
#else |
| 508 |
{ "gssapiauthentication", sUnsupported, SSHCFG_ALL }, |
511 |
{ "gssapiauthentication", sUnsupported, SSHCFG_ALL }, |
| 509 |
{ "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL }, |
512 |
{ "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL }, |
| 510 |
{ "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL }, |
513 |
{ "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL }, |
|
|
514 |
{ "gssapirequiredauthindicators", sUnsupported, SSHCFG_GLOBAL }, |
| 511 |
#endif |
515 |
#endif |
| 512 |
{ "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL }, |
516 |
{ "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL }, |
| 513 |
{ "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL }, |
517 |
{ "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL }, |
|
Lines 1262-1267
process_server_config_line_depth(ServerOptions *options, char *line,
Link Here
|
| 1262 |
intptr = &options->gss_strict_acceptor; |
1266 |
intptr = &options->gss_strict_acceptor; |
| 1263 |
goto parse_flag; |
1267 |
goto parse_flag; |
| 1264 |
|
1268 |
|
|
|
1269 |
case sGssRequiredAuthIndicators: |
| 1270 |
if (cp == NULL || *cp == '\0') |
| 1271 |
fatal("%.200s line %d: Missing argument.", |
| 1272 |
filename, linenum); |
| 1273 |
len = strspn(cp, WHITESPACE "="); |
| 1274 |
if (*activep && options->gss_required_auth_indicators == NULL) |
| 1275 |
options->gss_required_auth_indicators = xstrdup(cp + len); |
| 1276 |
break; |
| 1277 |
|
| 1265 |
case sPasswordAuthentication: |
1278 |
case sPasswordAuthentication: |
| 1266 |
intptr = &options->password_authentication; |
1279 |
intptr = &options->password_authentication; |
| 1267 |
goto parse_flag; |
1280 |
goto parse_flag; |
|
Lines 2377-2382
dump_config(ServerOptions *o)
Link Here
|
| 2377 |
dump_cfg_fmtint(sGssAuthentication, o->gss_authentication); |
2390 |
dump_cfg_fmtint(sGssAuthentication, o->gss_authentication); |
| 2378 |
dump_cfg_fmtint(sGssCleanupCreds, o->gss_cleanup_creds); |
2391 |
dump_cfg_fmtint(sGssCleanupCreds, o->gss_cleanup_creds); |
| 2379 |
#endif |
2392 |
#endif |
|
|
2393 |
dump_cfg_string(sGssRequiredAuthIndicators, o->gss_required_auth_indicators); |
| 2380 |
dump_cfg_fmtint(sPasswordAuthentication, o->password_authentication); |
2394 |
dump_cfg_fmtint(sPasswordAuthentication, o->password_authentication); |
| 2381 |
dump_cfg_fmtint(sKbdInteractiveAuthentication, |
2395 |
dump_cfg_fmtint(sKbdInteractiveAuthentication, |
| 2382 |
o->kbd_interactive_authentication); |
2396 |
o->kbd_interactive_authentication); |