]> andersk Git - openssh.git/blobdiff - servconf.c
- (djm) Add warning for UsePAM when built without PAM support
[openssh.git] / servconf.c
index f37193a8feb0b4af55e40823750e04b0abaa2fbb..a737f4b46b358723037c4137565747078e7ed725 100644 (file)
@@ -131,11 +131,7 @@ fill_default_server_options(ServerOptions *options)
 {
        /* Portable-specific options */
        if (options->use_pam == -1)
-#ifdef USE_PAM
                options->use_pam = 1;
-#else
-               options->use_pam = 0;
-#endif
 
        /* Standard Options */
        if (options->protocol == SSH_PROTO_UNKNOWN)
@@ -299,7 +295,11 @@ static struct {
        ServerOpCodes opcode;
 } keywords[] = {
        /* Portable-specific options */
+#ifdef USE_PAM
        { "UsePAM", sUsePAM },
+#else
+       { "UsePAM", sUnsupported },
+#endif
        /* Standard Options */
        { "port", sPort },
        { "hostkey", sHostKeyFile },
This page took 0.037929 seconds and 4 git commands to generate.