pam-needs-afsdb-libs-20010712
[openafs.git] / src / pam / afs_util.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef PAM_AFS_UTIL_H
11 #define PAM_AFS_UTIL_H
12
13
14 extern  char    *pam_afs_ident;
15 extern  char    *pam_afs_lh;
16
17
18 void lc_cleanup(
19         pam_handle_t    *pamh,
20         void            *data,
21         int             pam_end_status);
22
23 void nil_cleanup(
24         pam_handle_t    *pamh,
25         void            *data,
26         int             pam_end_status);
27
28 extern char*    cv2string();
29
30 #if     defined(AFS_HPUX_ENV)
31
32 #if !defined(AFS_HPUX110_ENV)
33 #define PAM_NEW_AUTHTOK_REQD    PAM_AUTHTOKEN_REQD
34 #endif /* ! AFS_HPUX110_ENV */
35 #define vsyslog(a,b,c)          syslog(a,b,c)
36 #define pam_get_user(a,b,c)     pam_get_item(a, PAM_USER, (void **)b)
37 #define pam_putenv(a,b)         !PAM_SUCCESS
38
39 #endif  /* AFS_HPUX_ENV */
40
41 #endif