示例#1
0
func (t *Transaction) Error() string {
	return C.GoString(C.pam_strerror(t.handle, C.int(t.status)))
}
示例#2
0
// Error returns a PAM error string from a PAM error code
func (t *Transaction) Error(errnum int) string {
	return C.GoString(C.pam_strerror(t.handle, C.int(errnum)))
}