aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/tasks/xauth_request.h
blob: 6324ca0de30a662a92343312edbe295e06c8d099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

/**
 * @defgroup xauth_request xauth_request
 * @{ @ingroup tasks
 */

#ifndef XAUTH_REQUEST_H_
#define XAUTH_REQUEST_H_

typedef struct xauth_request_t xauth_request_t;

#include <library.h>
#include <sa/ike_sa.h>
#include <sa/tasks/task.h>

/**
 * Task of type XAUTH_REQUEST, gets the username and password from the ISAKMP_SA
 * initializer.
 */
struct xauth_request_t {

	/**
	 * Implements the task_t interface
	 */
	task_t task;
};

/**
 * Create a new xauth_request task.
 *
 * @param ike_sa		IKE_SA this task works for
 * @param initiator		TRUE for initiator
 * @return				ike_config task to handle by the task_manager
 */
xauth_request_t *xauth_request_create(ike_sa_t *ike_sa, bool initiator);

#endif /** XAUTH_REQUEST_H_ @}*/