Lines Matching refs:pam_module
258 static sal_PamModule *pam_module = NULL; in osl_getPAM() local
271 pam_module = (sal_PamModule*)calloc( 1, sizeof(sal_PamModule) ); in osl_getPAM()
274 if ( pam_module != NULL ) in osl_getPAM()
276 pam_module->pam_acct_mgmt = (int (*)(pam_handle_t *, int)) dlsym ( pam_hdl, "pam_acct_mgmt" ); in osl_getPAM()
277 pam_module->pam_authenticate in osl_getPAM()
279 pam_module->pam_end = (int (*)(pam_handle_t *, int)) dlsym ( pam_hdl, "pam_end" ); in osl_getPAM()
280 …pam_module->pam_start = (int (*)(const char *, const char *, const struct pam_conv *, pam_handle… in osl_getPAM()
283 if ( (pam_module->pam_start == NULL) in osl_getPAM()
284 || (pam_module->pam_end == NULL) in osl_getPAM()
285 || (pam_module->pam_authenticate == NULL) in osl_getPAM()
286 || (pam_module->pam_acct_mgmt == NULL) ) in osl_getPAM()
288 free( pam_module ); in osl_getPAM()
289 pam_module = NULL; in osl_getPAM()
298 return pam_module; in osl_getPAM()
312 sal_PamModule* pam_module; in osl_PamAuthentification() local
314 pam_module = osl_getPAM(); in osl_PamAuthentification()
315 if ( pam_module != NULL ) in osl_PamAuthentification()
331 return_value = pam_module->pam_start( "su", name, in osl_PamAuthentification()
339 return_value = pam_module->pam_authenticate(pam_handle, 0); in osl_PamAuthentification()
345 return_value = pam_module->pam_acct_mgmt(pam_handle, 0); in osl_PamAuthentification()
346 pam_module->pam_end( pam_handle, return_value ); in osl_PamAuthentification()