531ebb611011c14f6704fd47dd6dea5758d6090a
[strongswan.git] / src / libtnccs / plugins / tnccs_11 / tnccs_11.h
1 /*
2 * Copyright (C) 2010-2013 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup tnccs_11_h tnccs_11
18 * @{ @ingroup tnccs_11
19 */
20
21 #ifndef TNCCS_11_H_
22 #define TNCCS_11_H_
23
24 #include <library.h>
25
26 #include <tnc/tnccs/tnccs.h>
27
28 /**
29 * Create an instance of the TNC IF-TNCCS 1.1 protocol handler.
30 *
31 * @param is_server TRUE to act as TNC Server, FALSE for TNC Client
32 * @param server Server identity
33 * @param peer Client identity
34 * @param transport Underlying IF-T transport protocol
35 * @return TNC_IF_TNCCS 1.1 protocol stack
36 */
37 tnccs_t* tnccs_11_create(bool is_server,
38 identification_t *server,
39 identification_t *peer,
40 tnc_ift_type_t transport);
41
42 #endif /** TNCCS_11_H_ @}*/