1/* Copyright (c) 2012 Apple Inc. All rights reserved. */
2
3#ifndef _SECURITY_AUTH_TYPES_H_
4#define _SECURITY_AUTH_TYPES_H_
5
6#include <bsm/audit.h>
7#include <mach/message.h>
8
9typedef struct {
10    uid_t auid;
11	uid_t euid;
12	gid_t egid;
13	uid_t ruid;
14	gid_t rgid;
15	pid_t pid;
16	au_asid_t asid;
17	int32_t tid;
18    audit_token_t opaqueToken;
19} audit_info_s;
20
21typedef au_asid_t session_id_t;
22typedef struct _session_s * session_t;
23typedef struct _process_s * process_t;
24typedef struct _connection_s * connection_t;
25
26typedef struct _auth_token_s * auth_token_t;
27typedef struct _credential_s * credential_t;
28
29typedef struct _ccaudit_s * ccaudit_t;
30typedef struct _mechanism_s * mechanism_t;
31typedef struct _rule_s * rule_t;
32typedef struct _agent_s * agent_t;
33typedef struct _engine_s * engine_t;
34
35typedef struct _authdb_s * authdb_t;
36typedef struct _authdb_connection_s * authdb_connection_t;
37
38typedef struct _auth_items_s * auth_items_t;
39typedef struct _auth_rights_s * auth_rights_t;
40
41#endif /* !_SECURITY_AUTH_TYPES_H_ */
42