Changeset 70 in openpam


Ignore:
Timestamp:
Feb 20, 2002, 3:33:11 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Move the linker set stuff into a separate file, and rename the
linker set for cosmetic reasons.

Sponsored by: DARPA, NAI Labs

Location:
trunk
Files:
1 added
4 edited

Legend:

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

    r42 r70  
    197197    pam_sm_open_session, pam_sm_close_session, pam_sm_chauthtok },      \
    198198    NULL, 0, NULL, NULL };                                              \
    199 DATA_SET(_openpam_modules, _pam_module)
     199DATA_SET(_openpam_static_modules, _pam_module)
    200200#else
    201201/* normal case */
  • trunk/lib/Makefile

    r39 r70  
    4848SRCS            += openpam_load.c
    4949SRCS            += openpam_log.c
     50SRCS            += openpam_static.c
    5051SRCS            += openpam_ttyconv.c
    5152SRCS            += pam_acct_mgmt.c
  • trunk/lib/openpam_impl.h

    r69 r70  
    102102void            openpam_clear_chains(pam_handle_t *);
    103103
     104#ifdef OPENPAM_STATIC_MODULES
     105pam_module_t   *openpam_static(const char *);
    104106#endif
     107
     108#endif
  • trunk/lib/openpam_load.c

    r63 r70  
    4343#include "openpam_impl.h"
    4444
    45 #ifdef OPENPAM_STATIC_MODULES
    46 SET_DECLARE(_openpam_modules, pam_module_t);
    47 #endif
    48 
    4945const char *_pam_sm_func_name[PAM_NUM_PRIMITIVES] = {
    5046        "pam_sm_authenticate",
     
    9389        /* look for a static module */
    9490        if (module == NULL && strchr(path, '/') == NULL) {
    95                 pam_module_t **modp;
    96                
    97                 SET_FOREACH(modp, _openpam_modules) {
    98                         if (strcmp((*modp)->path, path) == 0) {
    99                                 module = *modp;
    100                                 break;
    101                         }
    102                 }
     91                module = openpam_static(path);
    10392                openpam_log(PAM_LOG_DEBUG, "%s static %s",
    10493                    (module == NULL) ? "no" : "using", path);
Note: See TracChangeset for help on using the changeset viewer.