Changeset 111 in openpam
- Timestamp:
- Apr 12, 2002, 8:16:08 PM (19 years ago)
- Location:
- trunk/include/security
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/security/openpam.h
r106 r111 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/include/security/openpam.h#1 5$34 * $P4: //depot/projects/openpam/include/security/openpam.h#16 $ 35 35 */ 36 36 … … 209 209 210 210 /* 211 * Source-code compatibility with Linux-PAM modules 212 */ 213 #if defined(PAM_SM_AUTH) || defined(PAM_SM_ACCOUNT) || \ 214 defined(PAM_SM_SESSION) || defined(PAM_SM_PASSWORD) 215 #define LINUX_PAM_MODULE 216 #endif 217 #if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_AUTH) 218 #define _PAM_SM_AUTHENTICATE 0 219 #define _PAM_SM_SETCRED 0 220 #else 221 #undef PAM_SM_AUTH 222 #define PAM_SM_AUTH 223 #define _PAM_SM_AUTHENTICATE pam_sm_authenticate 224 #define _PAM_SM_SETCRED pam_sm_setcred 225 #endif 226 #if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_ACCOUNT) 227 #define _PAM_SM_ACCT_MGMT 0 228 #else 229 #undef PAM_SM_ACCOUNT 230 #define PAM_SM_ACCOUNT 231 #define _PAM_SM_ACCT_MGMT pam_sm_acct_mgmt 232 #endif 233 #if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_SESSION) 234 #define _PAM_SM_OPEN_SESSION 0 235 #define _PAM_SM_CLOSE_SESSION 0 236 #else 237 #undef PAM_SM_SESSION 238 #define PAM_SM_SESSION 239 #define _PAM_SM_OPEN_SESSION pam_sm_open_session 240 #define _PAM_SM_CLOSE_SESSION pam_sm_close_session 241 #endif 242 #if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_PASSWORD) 243 #define _PAM_SM_CHAUTHTOK 0 244 #else 245 #undef PAM_SM_PASSWORD 246 #define PAM_SM_PASSWORD 247 #define _PAM_SM_CHAUTHTOK pam_sm_chauthtok 248 #endif 249 250 /* 211 251 * Infrastructure for static modules using GCC linker sets. 212 252 * You are not expected to understand this. … … 228 268 static char _pam_name[] = name PAM_SOEXT; \ 229 269 static struct pam_module _pam_module = { _pam_name, { \ 230 pam_sm_authenticate, pam_sm_setcred, pam_sm_acct_mgmt, \231 pam_sm_open_session, pam_sm_close_session, pam_sm_chauthtok}, \270 _PAM_SM_AUTHENTICATE, _PAM_SM_SETCRED, _PAM_SM_ACCT_MGMT, \ 271 _PAM_SM_OPEN_SESSION, _PAM_SM_CLOSE_SESSION, _PAM_SM_CHAUTHTOK }, \ 232 272 NULL, 0, NULL, NULL }; \ 233 273 DATA_SET(_openpam_static_modules, _pam_module) -
trunk/include/security/pam_modules.h
r93 r111 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/include/security/pam_modules.h# 6$34 * $P4: //depot/projects/openpam/include/security/pam_modules.h#7 $ 35 35 */ 36 36 … … 50 50 */ 51 51 52 #if defined(PAM_SM_ACCOUNT) 52 53 PAM_EXTERN int 53 54 pam_sm_acct_mgmt(pam_handle_t *_pamh, … … 55 56 int _argc, 56 57 const char **_argv); 58 #endif 57 59 60 #if defined(PAM_SM_AUTH) 58 61 PAM_EXTERN int 59 62 pam_sm_authenticate(pam_handle_t *_pamh, … … 61 64 int _argc, 62 65 const char **_argv); 66 #endif 63 67 68 #if defined(PAM_SM_PASSWORD) 64 69 PAM_EXTERN int 65 70 pam_sm_chauthtok(pam_handle_t *_pamh, … … 67 72 int _argc, 68 73 const char **_argv); 74 #endif 69 75 76 #if defined(PAM_SM_SESSION) 70 77 PAM_EXTERN int 71 78 pam_sm_close_session(pam_handle_t *_pamh, … … 73 80 int _args, 74 81 const char **_argv); 82 #endif 75 83 84 #if defined(PAM_SM_SESSION) 76 85 PAM_EXTERN int 77 86 pam_sm_open_session(pam_handle_t *_pamh, … … 79 88 int _argc, 80 89 const char **_argv); 90 #endif 81 91 92 #if defined(PAM_SM_AUTH) 82 93 PAM_EXTERN int 83 94 pam_sm_setcred(pam_handle_t *_pamh, … … 85 96 int _argc, 86 97 const char **_argv); 98 #endif 87 99 88 100 /*
Note: See TracChangeset
for help on using the changeset viewer.