- added new types used to identify a specific IKE_SA
[strongswan.git] / Source / charon / types.h
1 /**
2 * @file types.h
3 *
4 * @brief Generic type definitions
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23
24 #ifndef TYPES_H_
25 #define TYPES_H_
26
27 #include <freeswan.h>
28
29 typedef enum status_e {
30 SUCCESS,
31 FAILED,
32 OUT_OF_RES,
33 ALREADY_DONE,
34 NOT_SUPPORTED
35 } status_t;
36
37 typedef enum ike_sa_role_e {
38 INITIATOR,
39 RESPONDER
40 } ike_sa_role_t;
41
42 typedef struct timeval timeval_t;
43
44 typedef struct timespec timespec_t;
45
46 /**
47 * Representates a IKE_SA spi
48 */
49 typedef struct spi_s spi_t;
50
51 struct spi_s{
52 u_int32_t high;
53 u_int32_t low;
54 };
55
56 #endif /*TYPES_H_*/