]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/xauth_noauth/xauth_noauth.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / xauth_noauth / xauth_noauth.h
CommitLineData
e4013bb9
TB
1/*
2 * Copyright (C) 2013 Tobias Brunner
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
e4013bb9
TB
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17/**
18 * @defgroup xauth_noauth_i xauth_noauth
19 * @{ @ingroup xauth_noauth
20 */
21
22#ifndef XAUTH_NOAUTH_H_
23#define XAUTH_NOAUTH_H_
24
25typedef struct xauth_noauth_t xauth_noauth_t;
26
27#include <sa/xauth/xauth_method.h>
28
29/**
30 * Implementation of the xauth_method_t interface that does not actually do
31 * any authentication but simply concludes the XAuth exchange successfully.
32 */
33struct xauth_noauth_t {
34
35 /**
36 * Implemented xauth_method_t interface.
37 */
38 xauth_method_t xauth_method;
39};
40
41/**
42 * Creates the noauth XAuth method, acting as server.
43 *
44 * @param server ID of the XAuth server
45 * @param peer ID of the XAuth client
510ecf61 46 * @param profile configuration string
e4013bb9
TB
47 * @return xauth_noauth_t object
48 */
49xauth_noauth_t *xauth_noauth_create_server(identification_t *server,
510ecf61
MW
50 identification_t *peer,
51 char *profile);
e4013bb9
TB
52
53#endif /** XAUTH_NOAUTH_H_ @}*/