aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/tasks/xauth_request.h
diff options
context:
space:
mode:
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_ @}*/