This commit was generated by cvs2svn to compensate for changes in r94532,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
2b8a72b7e3
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/openpam.h#15 $
|
||||
* $P4: //depot/projects/openpam/include/security/openpam.h#16 $
|
||||
*/
|
||||
|
||||
#ifndef _SECURITY_OPENPAM_H_INCLUDED
|
||||
@ -207,6 +207,46 @@ struct pam_module {
|
||||
pam_module_t *next;
|
||||
};
|
||||
|
||||
/*
|
||||
* Source-code compatibility with Linux-PAM modules
|
||||
*/
|
||||
#if defined(PAM_SM_AUTH) || defined(PAM_SM_ACCOUNT) || \
|
||||
defined(PAM_SM_SESSION) || defined(PAM_SM_PASSWORD)
|
||||
#define LINUX_PAM_MODULE
|
||||
#endif
|
||||
#if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_AUTH)
|
||||
#define _PAM_SM_AUTHENTICATE 0
|
||||
#define _PAM_SM_SETCRED 0
|
||||
#else
|
||||
#undef PAM_SM_AUTH
|
||||
#define PAM_SM_AUTH
|
||||
#define _PAM_SM_AUTHENTICATE pam_sm_authenticate
|
||||
#define _PAM_SM_SETCRED pam_sm_setcred
|
||||
#endif
|
||||
#if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_ACCOUNT)
|
||||
#define _PAM_SM_ACCT_MGMT 0
|
||||
#else
|
||||
#undef PAM_SM_ACCOUNT
|
||||
#define PAM_SM_ACCOUNT
|
||||
#define _PAM_SM_ACCT_MGMT pam_sm_acct_mgmt
|
||||
#endif
|
||||
#if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_SESSION)
|
||||
#define _PAM_SM_OPEN_SESSION 0
|
||||
#define _PAM_SM_CLOSE_SESSION 0
|
||||
#else
|
||||
#undef PAM_SM_SESSION
|
||||
#define PAM_SM_SESSION
|
||||
#define _PAM_SM_OPEN_SESSION pam_sm_open_session
|
||||
#define _PAM_SM_CLOSE_SESSION pam_sm_close_session
|
||||
#endif
|
||||
#if defined(LINUX_PAM_MODULE) && !defined(PAM_SM_PASSWORD)
|
||||
#define _PAM_SM_CHAUTHTOK 0
|
||||
#else
|
||||
#undef PAM_SM_PASSWORD
|
||||
#define PAM_SM_PASSWORD
|
||||
#define _PAM_SM_CHAUTHTOK pam_sm_chauthtok
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Infrastructure for static modules using GCC linker sets.
|
||||
* You are not expected to understand this.
|
||||
@ -227,8 +267,8 @@ struct pam_module {
|
||||
#define PAM_MODULE_ENTRY(name) \
|
||||
static char _pam_name[] = name PAM_SOEXT; \
|
||||
static struct pam_module _pam_module = { _pam_name, { \
|
||||
pam_sm_authenticate, pam_sm_setcred, pam_sm_acct_mgmt, \
|
||||
pam_sm_open_session, pam_sm_close_session, pam_sm_chauthtok }, \
|
||||
_PAM_SM_AUTHENTICATE, _PAM_SM_SETCRED, _PAM_SM_ACCT_MGMT, \
|
||||
_PAM_SM_OPEN_SESSION, _PAM_SM_CLOSE_SESSION, _PAM_SM_CHAUTHTOK }, \
|
||||
NULL, 0, NULL, NULL }; \
|
||||
DATA_SET(_openpam_static_modules, _pam_module)
|
||||
#else
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/pam_modules.h#6 $
|
||||
* $P4: //depot/projects/openpam/include/security/pam_modules.h#7 $
|
||||
*/
|
||||
|
||||
#ifndef _PAM_MODULES_H_INCLUDED
|
||||
@ -49,41 +49,53 @@ extern "C" {
|
||||
* XSSO 4.2.2, 6
|
||||
*/
|
||||
|
||||
#if defined(PAM_SM_ACCOUNT)
|
||||
PAM_EXTERN int
|
||||
pam_sm_acct_mgmt(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _argc,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
#if defined(PAM_SM_AUTH)
|
||||
PAM_EXTERN int
|
||||
pam_sm_authenticate(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _argc,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
#if defined(PAM_SM_PASSWORD)
|
||||
PAM_EXTERN int
|
||||
pam_sm_chauthtok(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _argc,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
#if defined(PAM_SM_SESSION)
|
||||
PAM_EXTERN int
|
||||
pam_sm_close_session(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _args,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
#if defined(PAM_SM_SESSION)
|
||||
PAM_EXTERN int
|
||||
pam_sm_open_session(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _argc,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
#if defined(PAM_SM_AUTH)
|
||||
PAM_EXTERN int
|
||||
pam_sm_setcred(pam_handle_t *_pamh,
|
||||
int _flags,
|
||||
int _argc,
|
||||
const char **_argv);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Single Sign-On extensions
|
||||
|
Loading…
Reference in New Issue
Block a user