wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
tncs.c File Reference

EAP-TNC - TNCS (IF-IMV, IF-TNCCS, and IF-TNCCS-SOH) More...

#include "includes.h"
#include <dlfcn.h>
#include "common.h"
#include "base64.h"
#include "common/tnc.h"
#include "tncs.h"
#include "eap_common/eap_tlv_common.h"
#include "eap_common/eap_defs.h"

Data Structures

struct  tnc_if_imv
 
struct  tncs_data
 
struct  tncs_data::conn_imv
 
struct  tncs_global
 

Macros

#define TNC_CONFIG_FILE   "/etc/tnc_config"
 
#define IF_TNCCS_START
 
#define IF_TNCCS_END   "\n</TNCCS-Batch>"
 
#define TNC_MAX_IMV_ID   10
 

Functions

TNC_Result TNC_TNCS_ReportMessageTypes (TNC_IMVID imvID, TNC_MessageTypeList supportedTypes, TNC_UInt32 typeCount)
 
TNC_Result TNC_TNCS_SendMessage (TNC_IMVID imvID, TNC_ConnectionID connectionID, TNC_BufferReference message, TNC_UInt32 messageLength, TNC_MessageType messageType)
 
TNC_Result TNC_TNCS_RequestHandshakeRetry (TNC_IMVID imvID, TNC_ConnectionID connectionID, TNC_RetryReason reason)
 
TNC_Result TNC_TNCS_ProvideRecommendation (TNC_IMVID imvID, TNC_ConnectionID connectionID, TNC_IMV_Action_Recommendation recommendation, TNC_IMV_Evaluation_Result evaluation)
 
TNC_Result TNC_TNCS_GetAttribute (TNC_IMVID imvID, TNC_ConnectionID connectionID, TNC_AttributeID attribureID, TNC_UInt32 bufferLength, TNC_BufferReference buffer, TNC_UInt32 *pOutValueLength)
 
TNC_Result TNC_TNCS_SetAttribute (TNC_IMVID imvID, TNC_ConnectionID connectionID, TNC_AttributeID attribureID, TNC_UInt32 bufferLength, TNC_BufferReference buffer)
 
TNC_Result TNC_TNCS_BindFunction (TNC_IMVID imvID, char *functionName, void **pOutFunctionPointer)
 
void tncs_init_connection (struct tncs_data *tncs)
 
size_t tncs_total_send_len (struct tncs_data *tncs)
 
u8 * tncs_copy_send_buf (struct tncs_data *tncs, u8 *pos)
 
char * tncs_if_tnccs_start (struct tncs_data *tncs)
 
char * tncs_if_tnccs_end (void)
 
enum tncs_process_res tncs_process_if_tnccs (struct tncs_data *tncs, const u8 *msg, size_t len)
 
struct tncs_datatncs_init (void)
 
void tncs_deinit (struct tncs_data *tncs)
 
int tncs_global_init (void)
 
void tncs_global_deinit (void)
 
struct wpabuftncs_build_soh_request (void)
 
struct wpabuftncs_process_soh (const u8 *soh_tlv, size_t soh_tlv_len, int *failure)
 

Detailed Description

EAP-TNC - TNCS (IF-IMV, IF-TNCCS, and IF-TNCCS-SOH)

Macro Definition Documentation

#define IF_TNCCS_START
Value:
"<?xml version=\"1.0\"?>\n" \
"<TNCCS-Batch BatchId=\"%d\" Recipient=\"TNCS\" " \
"xmlns=\"http://www.trustedcomputinggroup.org/IWG/TNC/1_0/IF_TNCCS#\" " \
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " \
"xsi:schemaLocation=\"http://www.trustedcomputinggroup.org/IWG/TNC/1_0/" \
"IF_TNCCS# https://www.trustedcomputinggroup.org/XML/SCHEMA/TNCCS_1.0.xsd\">\n"