1 /* Copyright (c) 2012-2013 Apple Inc. All Rights Reserved. */
3 #ifndef _SECURITY_AUTH_CCAUDIT_H_
4 #define _SECURITY_AUTH_CCAUDIT_H_
6 #include <bsm/audit_uevents.h>
8 AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED
9 ccaudit_t
ccaudit_create(process_t
, auth_token_t
, int32_t event
);
12 void ccaudit_log_authorization(ccaudit_t
, const char * right
, OSStatus err
);
15 void ccaudit_log_success(ccaudit_t
, credential_t cred
, const char * right
);
18 void ccaudit_log_failure(ccaudit_t
, const char * credName
, const char * right
);
21 void ccaudit_log_mechanism(ccaudit_t
, const char * right
, const char * mech
, uint32_t status
, const char * interrupted
);
24 void ccaudit_log(ccaudit_t
, const char * right
, const char * msg
, OSStatus err
);
26 #endif /* !_SECURITY_AUTH_CCAUDIT_H_ */