logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pam_get_data - get module internal data

Description

This function together with the pam_set_data(3) function is useful to manage module-specific data meaningful only to the calling PAM module. The pam_get_data function looks up the object associated with the (hopefully) unique string module_data_name in the PAM context specified by the pamh argument. A successful call to pam_get_data will result in data pointing to the object. Note, this data is not a copy and should be treated as constant by the module.

Name

pam_get_data - get module internal data

Return Values

PAM_SUCCESS Data was successful retrieved. PAM_SYSTEM_ERR A NULL pointer was submitted as PAM handle or the function was called by an application. PAM_NO_MODULE_DATA No module specific data is present.

See Also

pam_end(3), pam_set_data(3), pam_strerror(3) Linux-PAM 07/03/2025 PAM_GET_DATA(3)

Synopsis

#include<security/pam_modules.h>intpam_get_data(constpam_handle_t*pamh,constchar*module_data_name,constvoid**data);

See Also