Changeset 32 in openpam for trunk/lib/openpam_impl.h


Ignore:
Timestamp:
Feb 4, 2002, 11:22:40 PM (12 years ago)
Author:
des
Message:

Add support for static linking. Also rename a handful of constants
to reduce the chance of every running into a naming conflict.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_impl.h

    r25 r32  
    4040#include <security/openpam.h> 
    4141 
     42extern const char *_pam_sm_func_name[PAM_NUM_PRIMITIVES]; 
     43 
    4244/* 
    4345 * Control flags 
     
    5860#define PAM_NUM_CHAINS          4 
    5961 
    60 #define PAM_ACCT_MGMT           0 
    61 #define PAM_AUTHENTICATE        1 
    62 #define PAM_CHAUTHTOK           2 
    63 #define PAM_CLOSE_SESSION       3 
    64 #define PAM_OPEN_SESSION        4 
    65 #define PAM_SETCRED             5 
    66 #define PAM_NUM_PRIMITIVES      6 
    67  
    68 extern const char *_pam_sm_func_name[PAM_NUM_PRIMITIVES]; 
    69  
    70 typedef int (*pam_func_t)(pam_handle_t *, int, int, const char **); 
    71  
    7262typedef struct pam_chain pam_chain_t; 
    7363struct pam_chain { 
     64        pam_module_t    *module; 
    7465        int              flag; 
    75         char            *modpath; 
    7666        int              optc; 
    7767        char           **optv; 
    7868        pam_chain_t     *next; 
    79         void            *dlh; 
    80         pam_func_t       primitive[PAM_NUM_PRIMITIVES]; 
    8169}; 
    8270 
Note: See TracChangeset for help on using the changeset viewer.