FreeBSD/contrib/openpam/lib/libpam/pam_chauthtok.c
/*
 * XSSO 4.2.1
 * XSSO 6 page 38
 *
 * Perform password related functions within the PAM framework
 */


Perform password related functions within the PAM framework
Perform password related functions within the PAM framework
int
pam_chauthtok(pam_handle_t *pamh,
	int flags)
{
	int r;
	ENTER();
	if (flags & ~(PAM_SILENT|PAM_CHANGE_EXPIRED_AUTHTOK))
		RETURNC(PAM_SYMBOL_ERR);
	r = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK,
	    flags | PAM_PRELIM_CHECK);
	if (r == PAM_SUCCESS)
		r = openpam_dispatch(pamh, PAM_SM_CHAUTHTOK,
		    flags | PAM_UPDATE_AUTHTOK);
	pam_set_item(pamh, PAM_OLDAUTHTOK, NULL);
	pam_set_item(pamh, PAM_AUTHTOK, NULL);
	RETURNC(r);
}
int pam_chauthtok ( pam_handle_t * pamh , int flags ) { int r ; ENTER ( ) ; if ( flags & ~ ( PAM_SILENT | PAM_CHANGE_EXPIRED_AUTHTOK ) ) RETURNC ( PAM_SYMBOL_ERR ) ; r = openpam_dispatch ( pamh , PAM_SM_CHAUTHTOK , flags | PAM_PRELIM_CHECK ) ; if ( r == PAM_SUCCESS ) r = openpam_dispatch ( pamh , PAM_SM_CHAUTHTOK , flags | PAM_UPDATE_AUTHTOK ) ; pam_set_item ( pamh , PAM_OLDAUTHTOK , NULL ) ; pam_set_item ( pamh , PAM_AUTHTOK , NULL ) ; RETURNC ( r ) ; }
XSSO 4.2.1
 XSSO 6 page 38
XSSO 4 . 2 . 1 XSSO 6 page 38