diff options
Diffstat (limited to 'contrib/openpam/lib/pam_set_data.c')
-rw-r--r-- | contrib/openpam/lib/pam_set_data.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/openpam/lib/pam_set_data.c b/contrib/openpam/lib/pam_set_data.c index 59d5751..e04de73 100644 --- a/contrib/openpam/lib/pam_set_data.c +++ b/contrib/openpam/lib/pam_set_data.c @@ -81,3 +81,22 @@ pam_set_data(pam_handle_t *pamh, pamh->module_data = data; return (PAM_SUCCESS); } + +/* + * Error codes: + * + * PAM_SYSTEM_ERR + * PAM_BUF_ERR + */ + +/** + * The =pam_set_data function associates a pointer to an opaque object + * with an arbitrary string specified by the =module_data_name argument, + * in the PAM context specified by the =pamh argument. + * + * If not =NULL, the =cleanup argument should point to a function + * responsible for releasing the resources associated with the object. + * + * This function and its counterpart =pam_get_data are useful for managing + * data that are meaningful only to a particular service module. + */ |