]> andersk Git - openssh.git/blobdiff - servconf.c
NB: big update - may break stuff. Please test!
[openssh.git] / servconf.c
index 9f292b6a5495f54640f2f86c0dbe27c89aded394..5fa41e028e9dca4bbf3c98c1b99dd2bb7fc74406 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: servconf.c,v 1.63 2001/01/22 23:06:39 markus Exp $");
+RCSID("$OpenBSD: servconf.c,v 1.64 2001/02/03 10:08:37 markus Exp $");
 
 #ifdef KRB4
 #include <krb.h>
@@ -92,6 +92,7 @@ initialize_server_options(ServerOptions *options)
        options->max_startups_rate = -1;
        options->max_startups = -1;
        options->banner = NULL;
+       options->reverse_mapping_check = -1;
 }
 
 void
@@ -186,6 +187,8 @@ fill_default_server_options(ServerOptions *options)
                options->max_startups_rate = 100;               /* 100% */
        if (options->max_startups_begin == -1)
                options->max_startups_begin = options->max_startups;
+       if (options->reverse_mapping_check == -1)
+               options->reverse_mapping_check = 0;
 }
 
 /* Keyword tokens. */
@@ -208,7 +211,7 @@ typedef enum {
        sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
        sIgnoreUserKnownHosts, sCiphers, sProtocol, sPidFile,
        sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups,
-       sBanner
+       sBanner, sReverseMappingCheck
 } ServerOpCodes;
 
 /* Textual representation of the tokens. */
@@ -268,6 +271,7 @@ static struct {
        { "subsystem", sSubsystem },
        { "maxstartups", sMaxStartups },
        { "banner", sBanner },
+       { "reversemappingcheck", sReverseMappingCheck },
        { NULL, 0 }
 };
 
@@ -577,6 +581,10 @@ parse_flag:
                        intptr = &options->gateway_ports;
                        goto parse_flag;
 
+               case sReverseMappingCheck:
+                       intptr = &options->reverse_mapping_check;
+                       goto parse_flag;
+
                case sLogFacility:
                        intptr = (int *) &options->log_facility;
                        arg = strdelim(&cp);
This page took 0.036203 seconds and 4 git commands to generate.