Changeset 101 in openpam for trunk/lib/pam_get_authtok.c
- Timestamp:
- Apr 6, 2002, 5:17:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/pam_get_authtok.c
r100 r101 32 32 * SUCH DAMAGE. 33 33 * 34 * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#1 3$34 * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#14 $ 35 35 */ 36 36 37 37 #include <sys/param.h> 38 39 #include <stdlib.h> 38 40 39 41 #include <security/pam_appl.h> … … 96 98 if (r != PAM_SUCCESS) 97 99 return (r); 98 *authtok = resp; 99 return (pam_set_item(pamh, item, *authtok)); 100 r = pam_set_item(pamh, pitem, resp); 101 free(resp); 102 if (r != PAM_SUCCESS) 103 return (r); 104 return (pam_get_item(pamh, pitem, (const void **)authtok)); 100 105 } 101 106 … … 125 130 * 126 131 * The =prompt argument specifies a prompt to use if no token is cached. 127 * If =NULL, the =PAM_AUTHTOK_PROMPT or =PAM_OLDAUTHTOK_PROMPT item, as128 * a ppropriate, will be used. If that item is also =NULL, a hardcoded132 * If it is =NULL, the =PAM_AUTHTOK_PROMPT or =PAM_OLDAUTHTOK_PROMPT item, 133 * as appropriate, will be used. If that item is also =NULL, a hardcoded 129 134 * default prompt will be used. 130 135 * 131 136 * >pam_get_item 137 * >pam_get_user 132 138 */
Note: See TracChangeset
for help on using the changeset viewer.