diff options
author | Martin Willi <martin@revosec.ch> | 2011-12-08 16:19:54 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:31:15 +0100 |
commit | 69adeb5bf25b9938a0aff34718ece9d2be4f32ef (patch) | |
tree | 941300cdb29ae0459ae697eb2ab933d62effc5b3 /src/libcharon/sa/tasks/xauth.h | |
parent | c6d0098c1b8ae90579458987b9a901178c897640 (diff) | |
download | strongswan-69adeb5bf25b9938a0aff34718ece9d2be4f32ef.tar.bz2 strongswan-69adeb5bf25b9938a0aff34718ece9d2be4f32ef.tar.xz |
Replace xauth_request task with a new stub where we reimplement it
Diffstat (limited to 'src/libcharon/sa/tasks/xauth.h')
-rw-r--r-- | src/libcharon/sa/tasks/xauth.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/libcharon/sa/tasks/xauth.h b/src/libcharon/sa/tasks/xauth.h new file mode 100644 index 000000000..6633f9e55 --- /dev/null +++ b/src/libcharon/sa/tasks/xauth.h @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2011 Martin Willi + * Copyright (C) 2011 revosec AG + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +/** + * @defgroup xauth xauth + * @{ @ingroup tasks + */ + +#ifndef XAUTH_H_ +#define XAUTH_H_ + +typedef struct xauth_t xauth_t; + +#include <library.h> +#include <sa/ike_sa.h> +#include <sa/tasks/task.h> + +/** + * Task of type TASK_XAUTH, additional authentication after main/aggressive mode. + */ +struct xauth_t { + + /** + * Implements the task_t interface + */ + task_t task; +}; + +/** + * Create a new xauth task. + * + * @param ike_sa IKE_SA this task works for + * @param initiator TRUE for initiator + * @return xauth task to handle by the task_manager + */ +xauth_t *xauth_create(ike_sa_t *ike_sa, bool initiator); + +#endif /** XAUTH_H_ @}*/ |