1PAM_GET_DATA(3)                Linux-PAM Manual                PAM_GET_DATA(3)
2
3
4

NAME

6       pam_get_data - get module internal data
7

SYNOPSIS

9       #include <security/pam_modules.h>
10
11       int pam_get_data(const pam_handle_t *pamh,
12                        const char *module_data_name, const void **data);
13

DESCRIPTION

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

RETURN VALUES

25       PAM_SUCCESS
26           Data was successful retrieved.
27
28       PAM_SYSTEM_ERR
29           A NULL pointer was submitted as PAM handle or the function was
30           called by an application.
31
32       PAM_NO_MODULE_DATA
33           Module data not found or there is an entry, but it has the value
34           NULL.
35

SEE ALSO

37       pam_end(3), pam_set_data(3), pam_strerror(3)
38
39
40
41Linux-PAM Manual                  11/25/2020                   PAM_GET_DATA(3)
Impressum