summaryrefslogtreecommitdiff
path: root/src/libtnccs/plugins/tnc_imc/tnc_imc.h
blob: 2d4607e777d1f29a829d9b5f90e2fcec5ea422e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2010 Andreas Steffen
 * HSR Hochschule fuer Technik Rapperswil
 *
 * 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 tnc_imc_t tnc_imc
 * @{ @ingroup tnc_imc
 */

#ifndef TNC_IMC_H_
#define TNC_IMC_H_

#include <tnc/imc/imc.h>

/**
 * Create an Integrity Measurement Collector loaded from a library.
 *
 * @param name			name of the IMC
 * @param filename		path to the dynamic IMC library
 * @return				instance of the imc_t interface
 */
imc_t* tnc_imc_create(char *name, char *filename);

/**
 * Create an Integrity Measurement Collector from a set of IMC functions.
 *
 * @param name						name of the IMC
 * @param initialize				TNC_IMC_InitializePointer
 * @param notify_connection_change	TNC_IMC_NotifyConnectionChangePointer
 * @param begin_handshake			TNC_IMC_BeginHandshakePointer
 * @param receive_message			TNC_IMC_ReceiveMessagePointer
 * @param receive_message_long		TNC_IMC_ReceiveMessageLongPointer
 * @param batch_ending				TNC_IMC_BatchEndingPointer
 * @param terminate					TNC_IMC_TerminatePointer
 * @param provide_bind_function		TNC_IMC_ProvideBindFunctionPointer
 * @return							instance of the imc_t interface
 */
imc_t* tnc_imc_create_from_functions(char *name,
				TNC_IMC_InitializePointer initialize,
				TNC_IMC_NotifyConnectionChangePointer notify_connection_change,
				TNC_IMC_BeginHandshakePointer begin_handshake,
				TNC_IMC_ReceiveMessagePointer receive_message,
				TNC_IMC_ReceiveMessageLongPointer receive_message_long,
				TNC_IMC_BatchEndingPointer batch_ending,
				TNC_IMC_TerminatePointer terminate,
				TNC_IMC_ProvideBindFunctionPointer provide_bind_function);

#endif /** TNC_IMC_H_ @}*/