summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index e1e24854f..e3f4c4252 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -13,7 +13,7 @@
13#include "xmalloc.h" 13#include "xmalloc.h"
14#include "servconf.h" 14#include "servconf.h"
15 15
16RCSID("$Id: auth-pam.c,v 1.3 2000/04/20 13:12:58 damien Exp $"); 16RCSID("$Id: auth-pam.c,v 1.4 2000/04/29 14:47:29 damien Exp $");
17 17
18/* Callbacks */ 18/* Callbacks */
19static int pamconv(int num_msg, const struct pam_message **msg, 19static int pamconv(int num_msg, const struct pam_message **msg,
@@ -226,7 +226,11 @@ void start_pam(struct passwd *pw)
226/* Return list of PAM enviornment strings */ 226/* Return list of PAM enviornment strings */
227char **fetch_pam_environment(void) 227char **fetch_pam_environment(void)
228{ 228{
229#ifdef HAVE_PAM_GETENVLIST
229 return(pam_getenvlist((pam_handle_t *)pamh)); 230 return(pam_getenvlist((pam_handle_t *)pamh));
231#else /* HAVE_PAM_GETENVLIST */
232 return(NULL);
233#endif /* HAVE_PAM_GETENVLIST */
230} 234}
231 235
232/* Print any messages that have been generated during authentication */ 236/* Print any messages that have been generated during authentication */