예제 #1
0
// 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
}
예제 #2
0
파일: pam.go 프로젝트: wakwanza/golang-pam
// pam_chauthtok
func (t *Transaction) ChangeAuthTok(flags int) int {
	return int(C.pam_chauthtok(t.handle, C.int(flags)))
}