Moving charon to libcharon.
[strongswan.git] / src / libcharon / sa / tasks / task.c
1 /*
2 * Copyright (C) 2007 Tobias Brunner
3 * Copyright (C) 2007 Martin Willi
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #include "task.h"
18
19 #ifdef ME
20 ENUM(task_type_names, IKE_INIT, CHILD_REKEY,
21 "IKE_INIT",
22 "IKE_NATD",
23 "IKE_MOBIKE",
24 "IKE_AUTHENTICATE",
25 "IKE_AUTH_LIFETIME",
26 "IKE_CERT_PRE",
27 "IKE_CERT_POST",
28 "IKE_CONFIG",
29 "IKE_REKEY",
30 "IKE_REAUTH",
31 "IKE_DELETE",
32 "IKE_DPD",
33 "IKE_VENDOR",
34 "IKE_ME",
35 "CHILD_CREATE",
36 "CHILD_DELETE",
37 "CHILD_REKEY",
38 );
39 #else
40 ENUM(task_type_names, IKE_INIT, CHILD_REKEY,
41 "IKE_INIT",
42 "IKE_NATD",
43 "IKE_MOBIKE",
44 "IKE_AUTHENTICATE",
45 "IKE_AUTH_LIFETIME",
46 "IKE_CERT_PRE",
47 "IKE_CERT_POST",
48 "IKE_CONFIG",
49 "IKE_REKEY",
50 "IKE_REAUTH",
51 "IKE_DELETE",
52 "IKE_DPD",
53 "IKE_VENDOR",
54 "CHILD_CREATE",
55 "CHILD_DELETE",
56 "CHILD_REKEY",
57 );
58 #endif /* ME */