From 23f4e4b42d10a914f5a480d938282916aa6c124e Mon Sep 17 00:00:00 2001 From: Clavister OpenSource Date: Wed, 23 Nov 2011 08:55:59 +0100 Subject: IKEv1 XAUTH: Added ability to configure XAUTH+PSK. Added task to handle XAUTH requests. Modified task_manager_v1 to enable it to initiate new tasks immediately after finishing a response. --- src/libcharon/sa/tasks/xauth_request.h | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/libcharon/sa/tasks/xauth_request.h (limited to 'src/libcharon/sa/tasks/xauth_request.h') diff --git a/src/libcharon/sa/tasks/xauth_request.h b/src/libcharon/sa/tasks/xauth_request.h new file mode 100644 index 000000000..6324ca0de --- /dev/null +++ b/src/libcharon/sa/tasks/xauth_request.h @@ -0,0 +1,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 +#include +#include + +/** + * 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_ @}*/ -- cgit v1.2.3