strongswan/src/libcharon/plugins/tnc_imc/tnc_imc.h

61 lines
2.1 KiB
C

/*
* 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_ @}*/