pam_get_data (3)
Leading comments
Title: pam_get_data Author: [FIXME: author] [see http://docbook.sf.net/el/author] Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> Date: 09/19/2013 Manual: Linux-PAM Manual Source: Linux-PAM Manual Language: English
NAME
pam_get_data - get module internal dataSYNOPSIS
#include <security/pam_modules.h>
- int pam_get_data(const pam_handle_t *pamh, const char *module_data_name, const void **data);
DESCRIPTION
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.
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
- Module data not found or there is an entry, but it has the value NULL.