aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/tasks/xauth_request.h
diff options
context:
space:
mode:
authorClavister OpenSource <opensource@clavister.com>2011-11-23 08:55:59 +0100
committerClavister OpenSource <opensource@clavister.com>2012-03-20 17:30:49 +0100
commit23f4e4b42d10a914f5a480d938282916aa6c124e (patch)
tree25ca9ab8cd42b570a5343e7e9c7b2a7c24c00183 /src/libcharon/sa/tasks/xauth_request.h
parent79e9f776dc37caf5512fc4816cd7a01159042f96 (diff)
downloadstrongswan-23f4e4b42d10a914f5a480d938282916aa6c124e.tar.bz2
strongswan-23f4e4b42d10a914f5a480d938282916aa6c124e.tar.xz
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.
Diffstat (limited to 'src/libcharon/sa/tasks/xauth_request.h')
-rw-r--r--src/libcharon/sa/tasks/xauth_request.h37
1 files changed, 37 insertions, 0 deletions
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 <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_ @}*/