// ChangeAuthTok is used to change the authentication token. // // Valid flags: Silent, ChangeExpiredAuthtok func (t *Transaction) ChangeAuthTok(f Flags) error { t.status = C.pam_chauthtok(t.handle, C.int(f)) if t.status != C.PAM_SUCCESS { return t } return nil }
// pam_chauthtok func (t *Transaction) ChangeAuthTok(flags int) int { return int(C.pam_chauthtok(t.handle, C.int(flags))) }