Changeset 87 in openpam for trunk/include/security/openpam.h


Ignore:
Timestamp:
Mar 5, 2002, 2:20:26 PM (12 years ago)
Author:
des
Message:

Move most of the dynamic loader code into a separate file, and add
support for module versioning. OpenPAM will prefer a PAM module with
the same version number as the library itself to one with no version
number at all.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/openpam.h

    r86 r87  
    3232 * SUCH DAMAGE. 
    3333 * 
    34  * $P4: //depot/projects/openpam/include/security/openpam.h#10 $ 
     34 * $P4: //depot/projects/openpam/include/security/openpam.h#11 $ 
    3535 */ 
    3636 
     
    178178typedef struct pam_module pam_module_t; 
    179179struct pam_module { 
    180         const char      *path; 
     180        char            *path; 
    181181        pam_func_t       func[PAM_NUM_PRIMITIVES]; 
    182182        void            *dlh; 
     
    202202#define PAM_EXTERN static 
    203203#define PAM_MODULE_ENTRY(name)                                          \ 
    204 static struct pam_module _pam_module = { name PAM_SOEXT, {              \ 
     204static char _pam_name[] = name PAM_SOEXT;                               \ 
     205static struct pam_module _pam_module = { _pam_name, {                   \ 
    205206    pam_sm_authenticate, pam_sm_setcred, pam_sm_acct_mgmt,              \ 
    206207    pam_sm_open_session, pam_sm_close_session, pam_sm_chauthtok },      \ 
Note: See TracChangeset for help on using the changeset viewer.