diff options
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/servconf.c b/servconf.c index ff5b9436c..cf4e52f3b 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -194,6 +194,7 @@ initialize_server_options(ServerOptions *options) | |||
194 | options->fingerprint_hash = -1; | 194 | options->fingerprint_hash = -1; |
195 | options->disable_forwarding = -1; | 195 | options->disable_forwarding = -1; |
196 | options->expose_userauth_info = -1; | 196 | options->expose_userauth_info = -1; |
197 | options->debian_banner = -1; | ||
197 | } | 198 | } |
198 | 199 | ||
199 | /* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ | 200 | /* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
@@ -468,6 +469,8 @@ fill_default_server_options(ServerOptions *options) | |||
468 | options->expose_userauth_info = 0; | 469 | options->expose_userauth_info = 0; |
469 | if (options->sk_provider == NULL) | 470 | if (options->sk_provider == NULL) |
470 | options->sk_provider = xstrdup("internal"); | 471 | options->sk_provider = xstrdup("internal"); |
472 | if (options->debian_banner == -1) | ||
473 | options->debian_banner = 1; | ||
471 | 474 | ||
472 | assemble_algorithms(options); | 475 | assemble_algorithms(options); |
473 | 476 | ||
@@ -556,6 +559,7 @@ typedef enum { | |||
556 | sStreamLocalBindMask, sStreamLocalBindUnlink, | 559 | sStreamLocalBindMask, sStreamLocalBindUnlink, |
557 | sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, | 560 | sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
558 | sExposeAuthInfo, sRDomain, sPubkeyAuthOptions, sSecurityKeyProvider, | 561 | sExposeAuthInfo, sRDomain, sPubkeyAuthOptions, sSecurityKeyProvider, |
562 | sDebianBanner, | ||
559 | sDeprecated, sIgnore, sUnsupported | 563 | sDeprecated, sIgnore, sUnsupported |
560 | } ServerOpCodes; | 564 | } ServerOpCodes; |
561 | 565 | ||
@@ -719,6 +723,7 @@ static struct { | |||
719 | { "rdomain", sRDomain, SSHCFG_ALL }, | 723 | { "rdomain", sRDomain, SSHCFG_ALL }, |
720 | { "casignaturealgorithms", sCASignatureAlgorithms, SSHCFG_ALL }, | 724 | { "casignaturealgorithms", sCASignatureAlgorithms, SSHCFG_ALL }, |
721 | { "securitykeyprovider", sSecurityKeyProvider, SSHCFG_GLOBAL }, | 725 | { "securitykeyprovider", sSecurityKeyProvider, SSHCFG_GLOBAL }, |
726 | { "debianbanner", sDebianBanner, SSHCFG_GLOBAL }, | ||
722 | { NULL, sBadOption, 0 } | 727 | { NULL, sBadOption, 0 } |
723 | }; | 728 | }; |
724 | 729 | ||
@@ -2393,6 +2398,10 @@ process_server_config_line_depth(ServerOptions *options, char *line, | |||
2393 | *charptr = xstrdup(arg); | 2398 | *charptr = xstrdup(arg); |
2394 | break; | 2399 | break; |
2395 | 2400 | ||
2401 | case sDebianBanner: | ||
2402 | intptr = &options->debian_banner; | ||
2403 | goto parse_flag; | ||
2404 | |||
2396 | case sDeprecated: | 2405 | case sDeprecated: |
2397 | case sIgnore: | 2406 | case sIgnore: |
2398 | case sUnsupported: | 2407 | case sUnsupported: |