]> git.saurik.com Git - apple/security.git/blob - securityd/libsecurity_agent/lib/utils.h
Security-57031.1.35.tar.gz
[apple/security.git] / securityd / libsecurity_agent / lib / utils.h
1 /*
2 * utils.h
3 * libsecurity_agent
4 *
5 * Copyright (c) 2010-2011 Apple Inc. All Rights Reserved.
6 *
7 */
8
9 #include <uuid/uuid.h>
10 #include <bsm/audit.h>
11
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15
16 #define UUID_INITIALIZER_FROM_SESSIONID(sessionid) \
17 { 0,0,0,0, 0,0,0,0, 0,0,0,0, \
18 (0xff000000 & (sessionid))>>24, (0x00ff0000 & (sessionid))>>16, \
19 (0x0000ff00 & (sessionid))>>8, (0x000000ff & (sessionid)) }
20
21 unsigned char *uuid_init_with_sessionid(uuid_t uuid, uint32_t sessionid);
22 const char *uuid_to_string(const uuid_t uuid, char *buf);
23
24 #if defined(__cplusplus)
25 }
26 #endif