- (djm) Add warning for UsePAM when built without PAM support
diff --git a/servconf.c b/servconf.c
index f37193a..a737f4b 100644
--- a/servconf.c
+++ b/servconf.c
@@ -131,11 +131,7 @@
{
/* 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 @@
ServerOpCodes opcode;
} keywords[] = {
/* Portable-specific options */
+#ifdef USE_PAM
{ "UsePAM", sUsePAM },
+#else
+ { "UsePAM", sUnsupported },
+#endif
/* Standard Options */
{ "port", sPort },
{ "hostkey", sHostKeyFile },