]> git.saurik.com Git - apple/ipsec.git/blob - ipsec-tools/racoon/ipsec_xpc.h
ipsec-292.tar.gz
[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 enum {
63 IPSECIKE_CREATE = 0x0001,
64 IPSECIKE_START,
65 IPSECIKE_STOP,
66 IPSECIKE_GETSTATUS,
67 IPSECIKE_INVALIDATE,
68 IPSECIKE_START_CHILD,
69 IPSECIKE_STOP_CHILD,
70 IPSECIKE_ENABLE_CHILD,
71 IPSECIKE_DISABLE_CHILD,
72 IPSECIKE_GETSTATUS_CHILD
73 };
74
75
76 enum {
77 IPSECDB_CREATESESSION = 0x0101,
78 IPSECDB_GETSPI,
79 IPSECDB_ADDSA,
80 IPSECDB_UPDATESA,
81 IPSECDB_DELETESA,
82 IPSECDB_COPYSA,
83 IPSECDB_FLUSHSA,
84 IPSECDB_ADDPOLICY,
85 IPSECDB_DELETEPOLICY,
86 IPSECDB_COPYPOLICY,
87 IPSECDB_FLUSHPOLICIES,
88 IPSECDB_FLUSHALL,
89 IPSECDB_INVALIDATE,
90 IPSECDB_COPYSAIDS,
91 IPSECDB_COPYPOLICYIDS
92 };
93
94 enum {
95 SERVER_REPLY_OK = 0x0000,
96 SERVER_FAILED
97 };
98
99 #endif