]> git.saurik.com Git - apple/security.git/blob - OSX/authd/ccaudit.h
Security-57740.1.18.tar.gz
[apple/security.git] / OSX / authd / ccaudit.h
1 /* Copyright (c) 2012-2013 Apple Inc. All Rights Reserved. */
2
3 #ifndef _SECURITY_AUTH_CCAUDIT_H_
4 #define _SECURITY_AUTH_CCAUDIT_H_
5
6 #include <bsm/audit_uevents.h>
7
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);
10
11 AUTH_NONNULL_ALL
12 void ccaudit_log_authorization(ccaudit_t, const char * right, OSStatus err);
13
14 AUTH_NONNULL_ALL
15 void ccaudit_log_success(ccaudit_t, credential_t cred, const char * right);
16
17 AUTH_NONNULL_ALL
18 void ccaudit_log_failure(ccaudit_t, const char * credName, const char * right);
19
20 AUTH_NONNULL1
21 void ccaudit_log_mechanism(ccaudit_t, const char * right, const char * mech, uint32_t status, const char * interrupted);
22
23 AUTH_NONNULL1
24 void ccaudit_log(ccaudit_t, const char * right, const char * msg, OSStatus err);
25
26 #endif /* !_SECURITY_AUTH_CCAUDIT_H_ */