Пример #1
0
// CloseSession closes a previously opened session.
//
// Valid flags: Silent
func (t *Transaction) CloseSession(f Flags) error {
	t.status = C.pam_close_session(t.handle, C.int(f))
	if t.status != C.PAM_SUCCESS {
		return t
	}
	return nil
}
Пример #2
0
// pam_close_session
func (t *Transaction) CloseSession(flags int) int {
	return int(C.pam_close_session(t.handle, C.int(flags)))
}