Document that the item argument (for pam_get_item(3)) and the data

argument (for pam_get_data(3)) are untouched if the function fails.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@444 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2011-10-22 01:03:23 +00:00
parent 6970f8c093
commit 874f75e8f4
2 changed files with 4 additions and 1 deletions

View File

@ -84,6 +84,7 @@ pam_get_data(const pam_handle_t *pamh,
* context specified by the =pamh argument.
* A pointer to the object is stored in the location pointed to by the
* =data argument.
* If =pam_get_data fails, the =data argument is untouched.
*
* This function and its counterpart =pam_set_data are useful for managing
* data that are meaningful only to a particular service module.

View File

@ -108,10 +108,12 @@ pam_get_item(const pam_handle_t *pamh,
/**
* The =pam_get_item function stores a pointer to the item specified by
* the =item_type argument in the location specified by the =item
* the =item_type argument in the location pointed to by the =item
* argument.
* The item is retrieved from the PAM context specified by the =pamh
* argument.
* If =pam_get_item fails, the =item argument is untouched.
*
* The following item types are recognized:
*
* =PAM_SERVICE: