wolfssl: Rename `encrypt` methods to avoid conflicts with system headers
[strongswan.git] / src / medsrv / filter / auth_filter.h
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Copyright (C) 2008 Philip Boetschi, Adrian Doerig
4 *
5 * Copyright (C) secunet Security Networks AG
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 */
17
18 /**
19 * @defgroup auth_filter_server auth_filter
20 * @{ @ingroup medsrv
21 */
22
23 #ifndef AUTH_FILTER_H_
24 #define AUTH_FILTER_H_
25
26 #include <library.h>
27 #include <fast_filter.h>
28
29 #include "user.h"
30
31 typedef struct auth_filter_t auth_filter_t;
32
33 /**
34 * Authentication/Authorization filter.
35 */
36 struct auth_filter_t {
37
38 /**
39 * Implements filter_t interface.
40 */
41 fast_filter_t filter;
42 };
43
44 /**
45 * Create a auth_filter instance.
46 */
47 fast_filter_t *auth_filter_create(user_t *user, database_t *db);
48
49 #endif /** AUTH_FILTER_H_ @}*/