Changeset 102 in openpam for trunk/lib/pam_chauthtok.c


Ignore:
Timestamp:
Apr 6, 2002, 5:41:37 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Check flags carefully, and add documentation.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_chauthtok.c

    r93 r102  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_chauthtok.c#9 $
     34 * $P4: //depot/projects/openpam/lib/pam_chauthtok.c#10 $
    3535 */
    3636
     
    5454        int pam_err;
    5555
    56         if (flags & PAM_PRELIM_CHECK || flags & PAM_UPDATE_AUTHTOK)
     56        if (flags & ~(PAM_SILENT|PAM_CHANGE_EXPIRED_AUTHTOK))
    5757                return (PAM_SYMBOL_ERR);
    5858        pam_err = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK,
     
    7474 *      PAM_SYMBOL_ERR
    7575 */
     76
     77/**
     78 * The =pam_chauthtok function attempts to change the authentication token
     79 * for the user associated with the pam context specified by the =pamh
     80 * argument.
     81 *
     82 * The =flags argument is the binary or of zero or more of the following
     83 * values:
     84 *
     85 *      =PAM_SILENT
     86 *              Do not emit any messages.
     87 *      =PAM_CHANGE_EXPIRED_AUTHTOK
     88 *              Change only those authentication tokens that have expired.
     89 */
Note: See TracChangeset for help on using the changeset viewer.