summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh_user.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index b84da2eb..ecbe0f4c 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
};