]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libcharon/plugins/xauth_pam/xauth_pam.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / xauth_pam / xauth_pam.h
1 /*
2 * Copyright (C) 2012 Martin Willi
3 *
4 * Copyright (C) secunet Security Networks AG
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_pam_i xauth_pam
19 * @{ @ingroup xauth_pam
20 */
21
22 #ifndef XAUTH_PAM_H_
23 #define XAUTH_PAM_H_
24
25 typedef struct xauth_pam_t xauth_pam_t;
26
27 #include <sa/xauth/xauth_method.h>
28
29 /**
30 * XAuth plugin using Pluggable Authentication Modules to verify credentials.
31 */
32 struct xauth_pam_t {
33
34 /**
35 * Implemented xauth_method_t interface.
36 */
37 xauth_method_t xauth_method;
38 };
39
40 /**
41 * Creates the XAuth method using PAM, acting as server.
42 *
43 * @param server ID of the XAuth server
44 * @param peer ID of the XAuth client
45 * @param profile configuration string
46 * @return xauth_pam_t object
47 */
48 xauth_pam_t *xauth_pam_create_server(identification_t *server,
49 identification_t *peer, char *profile);
50
51 #endif /** XAUTH_PAM_H_ @}*/