Changeset 32 in openpam for trunk/modules


Ignore:
Timestamp:
Feb 4, 2002, 11:22:40 PM (18 years ago)
Author:
Dag-Erling Smørgrav
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

Location:
trunk/modules
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Makefile

    r16 r32  
    3737SUBDIR           =
    3838SUBDIR          += pam_deny
     39SUBDIR          += pam_dummy
    3940SUBDIR          += pam_permit
    4041
  • trunk/modules/pam_deny/pam_deny.c

    r16 r32  
    3535 */
    3636
     37#include <sys/param.h>
     38
    3739#include <security/pam_modules.h>
    3840
    39 int
     41PAM_EXTERN int
    4042pam_sm_authenticate(pam_handle_t *pamh, int flags,
    4143        int argc, const char *argv[])
     
    4547}
    4648
    47 int
     49PAM_EXTERN int
    4850pam_sm_setcred(pam_handle_t *pamh, int flags,
    4951        int argc, const char *argv[])
     
    5355}
    5456
    55 int
     57PAM_EXTERN int
    5658pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
    5759        int argc, const char *argv[])
     
    6163}
    6264
    63 int
     65PAM_EXTERN int
    6466pam_sm_open_session(pam_handle_t *pamh, int flags,
    6567        int argc, const char *argv[])
     
    6971}
    7072
    71 int
     73PAM_EXTERN int
    7274pam_sm_close_session(pam_handle_t *pamh, int flags,
    7375        int argc, const char *argv[])
     
    7779}
    7880
    79 int
     81PAM_EXTERN int
    8082pam_sm_chauthtok(pam_handle_t *pamh, int flags,
    8183        int argc, const char *argv[])
     
    8486        return (PAM_PERM_DENIED);
    8587}
     88
     89PAM_MODULE_ENTRY("pam_deny");
  • trunk/modules/pam_permit/pam_permit.c

    r16 r32  
    3535 */
    3636
     37#include <sys/param.h>
     38
    3739#include <security/pam_modules.h>
    3840
    39 int
     41PAM_EXTERN int
    4042pam_sm_authenticate(pam_handle_t *pamh, int flags,
    4143        int argc, const char *argv[])
     
    4547}
    4648
    47 int
     49PAM_EXTERN int
    4850pam_sm_setcred(pam_handle_t *pamh, int flags,
    4951        int argc, const char *argv[])
     
    5355}
    5456
    55 int
     57PAM_EXTERN int
    5658pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
    5759        int argc, const char *argv[])
     
    6163}
    6264
    63 int
     65PAM_EXTERN int
    6466pam_sm_open_session(pam_handle_t *pamh, int flags,
    6567        int argc, const char *argv[])
     
    6971}
    7072
    71 int
     73PAM_EXTERN int
    7274pam_sm_close_session(pam_handle_t *pamh, int flags,
    7375        int argc, const char *argv[])
     
    7779}
    7880
    79 int
     81PAM_EXTERN int
    8082pam_sm_chauthtok(pam_handle_t *pamh, int flags,
    8183        int argc, const char *argv[])
     
    8486        return (PAM_SUCCESS);
    8587}
     88
     89PAM_MODULE_ENTRY("pam_permit");
Note: See TracChangeset for help on using the changeset viewer.