2f12ed5744e06190509754f312ab8a76d8ec5274
[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, TASK_IKE_INIT, TASK_XAUTH_REQUEST,
21 "IKE_INIT",
22 "IKE_NATD",
23 "IKE_MOBIKE",
24 "IKE_AUTH",
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 "MAIN_MODE",
39 "QUICK_MODE",
40 "VENDOR_V1",
41 "IKE_NATD_V1",
42 "XAUTH_REQUEST",
43 );
44 #else
45 ENUM(task_type_names, TASK_IKE_INIT, TASK_XAUTH_REQUEST,
46 "IKE_INIT",
47 "IKE_NATD",
48 "IKE_MOBIKE",
49 "IKE_AUTH",
50 "IKE_AUTH_LIFETIME",
51 "IKE_CERT_PRE",
52 "IKE_CERT_POST",
53 "IKE_CONFIG",
54 "IKE_REKEY",
55 "IKE_REAUTH",
56 "IKE_DELETE",
57 "IKE_DPD",
58 "IKE_VENDOR",
59 "CHILD_CREATE",
60 "CHILD_DELETE",
61 "CHILD_REKEY",
62 "MAIN_MODE",
63 "QUICK_MODE",
64 "VENDOR_V1",
65 "IKE_NATD_V1",
66 "XAUTH_REQUEST",
67 );
68 #endif /* ME */