]>
Commit | Line | Data |
---|---|---|
c60c7694 MW |
1 | /* |
2 | * Copyright (C) 2007 Martin Willi | |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
c60c7694 MW |
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. | |
552cc11b MW |
15 | */ |
16 | ||
17 | /** | |
18 | * @defgroup ike_config ike_config | |
22bf44c8 | 19 | * @{ @ingroup tasks_v2 |
c60c7694 MW |
20 | */ |
21 | ||
22 | #ifndef IKE_CONFIG_H_ | |
23 | #define IKE_CONFIG_H_ | |
24 | ||
25 | typedef struct ike_config_t ike_config_t; | |
26 | ||
27 | #include <library.h> | |
28 | #include <sa/ike_sa.h> | |
15a682f4 | 29 | #include <sa/task.h> |
c60c7694 MW |
30 | |
31 | /** | |
a09972df | 32 | * Task of type TASK_IKE_CONFIG, sets up a virtual IP and other |
c60c7694 | 33 | * configurations for an IKE_SA. |
c60c7694 MW |
34 | */ |
35 | struct ike_config_t { | |
36 | ||
37 | /** | |
38 | * Implements the task_t interface | |
39 | */ | |
40 | task_t task; | |
41 | }; | |
42 | ||
43 | /** | |
552cc11b | 44 | * Create a new ike_config task. |
c60c7694 MW |
45 | * |
46 | * @param ike_sa IKE_SA this task works for | |
e0fe7651 | 47 | * @param initiator TRUE for initiator |
b9b8a98f | 48 | * @return ike_config task to handle by the task_manager |
c60c7694 | 49 | */ |
e0fe7651 | 50 | ike_config_t *ike_config_create(ike_sa_t *ike_sa, bool initiator); |
c60c7694 | 51 | |
1490ff4d | 52 | #endif /** IKE_CONFIG_H_ @}*/ |