IKEv1 XAUTH: Added ability to configure XAUTH+PSK. Added task to handle XAUTH reques...
[strongswan.git] / src / libcharon / sa / tasks / xauth_request.h
1
2 /**
3 * @defgroup xauth_request xauth_request
4 * @{ @ingroup tasks
5 */
6
7 #ifndef XAUTH_REQUEST_H_
8 #define XAUTH_REQUEST_H_
9
10 typedef struct xauth_request_t xauth_request_t;
11
12 #include <library.h>
13 #include <sa/ike_sa.h>
14 #include <sa/tasks/task.h>
15
16 /**
17 * Task of type XAUTH_REQUEST, gets the username and password from the ISAKMP_SA
18 * initializer.
19 */
20 struct xauth_request_t {
21
22 /**
23 * Implements the task_t interface
24 */
25 task_t task;
26 };
27
28 /**
29 * Create a new xauth_request task.
30 *
31 * @param ike_sa IKE_SA this task works for
32 * @param initiator TRUE for initiator
33 * @return ike_config task to handle by the task_manager
34 */
35 xauth_request_t *xauth_request_create(ike_sa_t *ike_sa, bool initiator);
36
37 #endif /** XAUTH_REQUEST_H_ @}*/