Changeset 932 in openpam for trunk/lib/libpam/pam_chauthtok.c


Ignore:
Timestamp:
Apr 26, 2017, 8:41:59 PM (4 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add two more error codes for situations where we used PAM_SYMBOL_ERR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/libpam/pam_chauthtok.c

    r648 r932  
    6161        ENTER();
    6262        if (flags & ~(PAM_SILENT|PAM_CHANGE_EXPIRED_AUTHTOK))
    63                 RETURNC(PAM_SYMBOL_ERR);
     63                RETURNC(PAM_BAD_CONSTANT);
    6464        r = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK,
    6565            flags | PAM_PRELIM_CHECK);
     
    7878 *      =pam_sm_chauthtok
    7979 *      !PAM_IGNORE
    80  *      PAM_SYMBOL_ERR
     80 *      PAM_BAD_CONSTANT
    8181 */
    8282
     
    9494 *              Change only those authentication tokens that have expired.
    9595 *
    96  * If any other bits are set, =pam_chauthtok will return =PAM_SYMBOL_ERR.
     96 * If any other bits are set, =pam_chauthtok will return =PAM_BAD_CONSTANT.
    9797 */
Note: See TracChangeset for help on using the changeset viewer.