]> git.saurik.com Git - apple/ipsec.git/blob - ipsec-tools/racoon/ipsec_xpc.h
3b64e8378bfcd725ccbc9452868346ccc1810561
[apple/ipsec.git] / ipsec-tools / racoon / ipsec_xpc.h
1 /*
2 * Copyright (c) 2012, 2013 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #ifndef SecureNetworking_ipsec_xpc_H
25 #define SecureNetworking_ipsec_xpc_H
26
27 #define SN_ENTITLEMENT_IPSEC_IKE CFSTR("com.apple.private.SecureNetworking.ipsec_ike")
28 #define SN_ENTITLEMENT_IPSEC_DB CFSTR("com.apple.private.SecureNetworking.ipsec_db")
29
30 #define IPSEC_HELPER "com.apple.SecureNetworking.IPSec"
31
32 /* IKE */
33 #define IPSECOPCODE "ipsecopcode"
34 #define IPSECOPIKEDICT "ipsecikedict"
35 #define IPSECOPCHILDDICT "ipsecchilddict"
36 #define IPSECOBJREF "ipsecobjectref"
37 #define IPSECIKEID "ipsecikeid"
38 #define IPSECCHILDID "ipsecchildid"
39 #define IPSECIKESTATUS "ipsecikestatus"
40 #define IPSECCHILDSTATUS "ipsecchildstatus"
41
42
43 /* DB SA */
44 #define IPSECSASESSIONID "ipsecsasessionid"
45 #define IPSECSAID "ipsecsaid"
46 #define IPSECSADICT "ipsecsadict"
47 #define IPSECSASPI "ipsecsaspi"
48 #define IPSECSAIDARRAY "ipsecsaidarray"
49 #define IPSECPOLICYID "ipsecpolicyid"
50 #define IPSECPOLICYDICT "ipsecpolicydict"
51 #define IPSECPOLICYIDARRAY "ipsecpolicyidarray"
52
53 /* message */
54 #define IPSECMESSAGE "ipsecmessage"
55 #define IPSECITEMID "ipsecitemid"
56 #define IPSECITEMDICT "ipsecitemdict"
57
58 #define SERVERREPLY "reply"
59
60 #define REPLYOFFSET 0x1000
61
62 #define kSNIPSecDBInvalidSPI 0
63
64 enum {
65 IPSECIKE_CREATE = 0x0001,
66 IPSECIKE_START,
67 IPSECIKE_STOP,
68 IPSECIKE_GETSTATUS,
69 IPSECIKE_INVALIDATE,
70 IPSECIKE_START_CHILD,
71 IPSECIKE_STOP_CHILD,
72 IPSECIKE_ENABLE_CHILD,
73 IPSECIKE_DISABLE_CHILD,
74 IPSECIKE_GETSTATUS_CHILD
75 };
76
77
78 enum {
79 IPSECDB_CREATESESSION = 0x0101,
80 IPSECDB_GETSPI,
81 IPSECDB_ADDSA,
82 IPSECDB_UPDATESA,
83 IPSECDB_DELETESA,
84 IPSECDB_COPYSA,
85 IPSECDB_FLUSHSA,
86 IPSECDB_ADDPOLICY,
87 IPSECDB_DELETEPOLICY,
88 IPSECDB_COPYPOLICY,
89 IPSECDB_FLUSHPOLICIES,
90 IPSECDB_FLUSHALL,
91 IPSECDB_INVALIDATE,
92 IPSECDB_COPYSAIDS,
93 IPSECDB_COPYPOLICYIDS
94 };
95
96 enum {
97 SERVER_REPLY_OK = 0x0000,
98 SERVER_FAILED
99 };
100
101 #endif