Lines Matching refs:pam_module
259 static sal_PamModule *pam_module = NULL; in osl_getPAM() local
272 pam_module = (sal_PamModule*)calloc( 1, sizeof(sal_PamModule) ); in osl_getPAM()
275 if ( pam_module != NULL ) in osl_getPAM()
277 pam_module->pam_acct_mgmt = (int (*)(pam_handle_t *, int)) dlsym ( pam_hdl, "pam_acct_mgmt" ); in osl_getPAM()
278 pam_module->pam_authenticate in osl_getPAM()
280 pam_module->pam_end = (int (*)(pam_handle_t *, int)) dlsym ( pam_hdl, "pam_end" ); in osl_getPAM()
281 …pam_module->pam_start = (int (*)(const char *, const char *, const struct pam_conv *, pam_hand… in osl_getPAM()
284 if ( (pam_module->pam_start == NULL) in osl_getPAM()
285 || (pam_module->pam_end == NULL) in osl_getPAM()
286 || (pam_module->pam_authenticate == NULL) in osl_getPAM()
287 || (pam_module->pam_acct_mgmt == NULL) ) in osl_getPAM()
289 free( pam_module ); in osl_getPAM()
290 pam_module = NULL; in osl_getPAM()
299 return pam_module; in osl_getPAM()
313 sal_PamModule* pam_module; in osl_PamAuthentification() local
315 pam_module = osl_getPAM(); in osl_PamAuthentification()
316 if ( pam_module != NULL ) in osl_PamAuthentification()
332 return_value = pam_module->pam_start( "su", name, in osl_PamAuthentification()
340 return_value = pam_module->pam_authenticate(pam_handle, 0); in osl_PamAuthentification()
346 return_value = pam_module->pam_acct_mgmt(pam_handle, 0); in osl_PamAuthentification()
347 pam_module->pam_end( pam_handle, return_value ); in osl_PamAuthentification()