diff options
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c index 9f292b6a5..5fa41e028 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: servconf.c,v 1.63 2001/01/22 23:06:39 markus Exp $"); | 13 | RCSID("$OpenBSD: servconf.c,v 1.64 2001/02/03 10:08:37 markus Exp $"); |
14 | 14 | ||
15 | #ifdef KRB4 | 15 | #ifdef KRB4 |
16 | #include <krb.h> | 16 | #include <krb.h> |
@@ -92,6 +92,7 @@ initialize_server_options(ServerOptions *options) | |||
92 | options->max_startups_rate = -1; | 92 | options->max_startups_rate = -1; |
93 | options->max_startups = -1; | 93 | options->max_startups = -1; |
94 | options->banner = NULL; | 94 | options->banner = NULL; |
95 | options->reverse_mapping_check = -1; | ||
95 | } | 96 | } |
96 | 97 | ||
97 | void | 98 | void |
@@ -186,6 +187,8 @@ fill_default_server_options(ServerOptions *options) | |||
186 | options->max_startups_rate = 100; /* 100% */ | 187 | options->max_startups_rate = 100; /* 100% */ |
187 | if (options->max_startups_begin == -1) | 188 | if (options->max_startups_begin == -1) |
188 | options->max_startups_begin = options->max_startups; | 189 | options->max_startups_begin = options->max_startups; |
190 | if (options->reverse_mapping_check == -1) | ||
191 | options->reverse_mapping_check = 0; | ||
189 | } | 192 | } |
190 | 193 | ||
191 | /* Keyword tokens. */ | 194 | /* Keyword tokens. */ |
@@ -208,7 +211,7 @@ typedef enum { | |||
208 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, | 211 | sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups, |
209 | sIgnoreUserKnownHosts, sCiphers, sProtocol, sPidFile, | 212 | sIgnoreUserKnownHosts, sCiphers, sProtocol, sPidFile, |
210 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, | 213 | sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups, |
211 | sBanner | 214 | sBanner, sReverseMappingCheck |
212 | } ServerOpCodes; | 215 | } ServerOpCodes; |
213 | 216 | ||
214 | /* Textual representation of the tokens. */ | 217 | /* Textual representation of the tokens. */ |
@@ -268,6 +271,7 @@ static struct { | |||
268 | { "subsystem", sSubsystem }, | 271 | { "subsystem", sSubsystem }, |
269 | { "maxstartups", sMaxStartups }, | 272 | { "maxstartups", sMaxStartups }, |
270 | { "banner", sBanner }, | 273 | { "banner", sBanner }, |
274 | { "reversemappingcheck", sReverseMappingCheck }, | ||
271 | { NULL, 0 } | 275 | { NULL, 0 } |
272 | }; | 276 | }; |
273 | 277 | ||
@@ -577,6 +581,10 @@ parse_flag: | |||
577 | intptr = &options->gateway_ports; | 581 | intptr = &options->gateway_ports; |
578 | goto parse_flag; | 582 | goto parse_flag; |
579 | 583 | ||
584 | case sReverseMappingCheck: | ||
585 | intptr = &options->reverse_mapping_check; | ||
586 | goto parse_flag; | ||
587 | |||
580 | case sLogFacility: | 588 | case sLogFacility: |
581 | intptr = (int *) &options->log_facility; | 589 | intptr = (int *) &options->log_facility; |
582 | arg = strdelim(&cp); | 590 | arg = strdelim(&cp); |