1/*
2 * Copyright (c) 2000 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 __PPPCONTROLLERPRIV_H__
25#define __PPPCONTROLLERPRIV_H__
26
27/*
28 * Keys have moved to SystemConfiguration Framework
29 *  SCSchemaDefinitions.h and SCSchemaDefinitionsPrivate.h
30 */
31
32/* IPSec error codes */
33enum {
34	IPSEC_NO_ERROR = 0,
35	IPSEC_GENERIC_ERROR = 1,
36	IPSEC_NOSERVERADDRESS_ERROR = 2,
37	IPSEC_NOSHAREDSECRET_ERROR = 3,
38	IPSEC_NOCERTIFICATE_ERROR = 4,
39	IPSEC_RESOLVEADDRESS_ERROR = 5,
40	IPSEC_NOLOCALNETWORK_ERROR = 6,
41	IPSEC_CONFIGURATION_ERROR = 7,
42	IPSEC_RACOONCONTROL_ERROR = 8,
43	IPSEC_CONNECTION_ERROR = 9,
44	IPSEC_NEGOTIATION_ERROR = 10,
45	IPSEC_SHAREDSECRET_ERROR = 11,
46	IPSEC_SERVER_CERTIFICATE_ERROR = 12,
47	IPSEC_CLIENT_CERTIFICATE_ERROR = 13,
48	IPSEC_XAUTH_ERROR = 14,
49	IPSEC_NETWORKCHANGE_ERROR = 15,
50	IPSEC_PEERDISCONNECT_ERROR = 16,
51	IPSEC_PEERDEADETECTION_ERROR = 17,
52	IPSEC_EDGE_ACTIVATION_ERROR = 18,
53	IPSEC_IDLETIMEOUT_ERROR = 19,
54	IPSEC_CLIENT_CERTIFICATE_PREMATURE = 20,
55	IPSEC_CLIENT_CERTIFICATE_EXPIRED = 21,
56	IPSEC_SERVER_CERTIFICATE_PREMATURE = 22,
57	IPSEC_SERVER_CERTIFICATE_EXPIRED = 23,
58	IPSEC_SERVER_CERTIFICATE_INVALID_ID = 24
59};
60
61/*
62 * IPSEC state
63 *
64 */
65enum {
66    IPSEC_IDLE = 0,
67    IPSEC_INITIALIZE,
68    IPSEC_CONTACT,
69    IPSEC_PHASE1,
70    IPSEC_PHASE1AUTH,
71    IPSEC_PHASE2,
72    IPSEC_RUNNING,
73    IPSEC_TERMINATE,
74    IPSEC_WAITING
75};
76
77
78
79#endif
80
81
82