From: Sergiy Vyshnevetskiy <serg@vostok.net>
Subject: [zebra 18947] [PATCH] openpam patch
configure support for openpam (freebsd5.0)
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index b84da2e..ecbe0f4 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -25,7 +25,12 @@
#ifdef USE_PAM
#include <security/pam_appl.h>
+#ifdef HAVE_PAM_MISC_H
#include <security/pam_misc.h>
+#endif
+#ifdef HAVE_OPENPAM_H
+#include <security/openpam.h>
+#endif
#endif /* USE_PAM */
#include "memory.h"
@@ -35,7 +40,7 @@
#ifdef USE_PAM
static struct pam_conv conv =
{
- misc_conv,
+ PAM_CONV_FUNC,
NULL
};