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

EAP-TNC - TNCC (IF-IMC and IF-TNCCS) More...

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

Data Structures

struct  tnc_if_imc
 
struct  tncc_data
 

Macros

#define TSTR   "%s"
 
#define TNC_CONFIG_FILE   "/etc/tnc_config"
 
#define TNC_WINREG_PATH   TEXT("SOFTWARE\\Trusted Computing Group\\TNC\\IMCs")
 
#define IF_TNCCS_START
 
#define IF_TNCCS_END   "\n</TNCCS-Batch>"
 
#define TNC_MAX_IMC_ID   10
 

Enumerations

enum  {
  SSOH_MS_MACHINE_INVENTORY = 1, SSOH_MS_QUARANTINE_STATE = 2, SSOH_MS_PACKET_INFO = 3, SSOH_MS_SYSTEMGENERATED_IDS = 4,
  SSOH_MS_MACHINENAME = 5, SSOH_MS_CORRELATIONID = 6, SSOH_MS_INSTALLED_SHVS = 7, SSOH_MS_MACHINE_INVENTORY_EX = 8
}
 

Functions

TNC_Result TNC_TNCC_ReportMessageTypes (TNC_IMCID imcID, TNC_MessageTypeList supportedTypes, TNC_UInt32 typeCount)
 
TNC_Result TNC_TNCC_SendMessage (TNC_IMCID imcID, TNC_ConnectionID connectionID, TNC_BufferReference message, TNC_UInt32 messageLength, TNC_MessageType messageType)
 
TNC_Result TNC_TNCC_RequestHandshakeRetry (TNC_IMCID imcID, TNC_ConnectionID connectionID, TNC_RetryReason reason)
 
TNC_Result TNC_9048_LogMessage (TNC_IMCID imcID, TNC_UInt32 severity, const char *message)
 
TNC_Result TNC_9048_UserMessage (TNC_IMCID imcID, TNC_ConnectionID connectionID, const char *message)
 
TNC_Result TNC_TNCC_BindFunction (TNC_IMCID imcID, char *functionName, void **pOutfunctionPointer)
 
void tncc_init_connection (struct tncc_data *tncc)
 
size_t tncc_total_send_len (struct tncc_data *tncc)
 
u8 * tncc_copy_send_buf (struct tncc_data *tncc, u8 *pos)
 
char * tncc_if_tnccs_start (struct tncc_data *tncc)
 
char * tncc_if_tnccs_end (void)
 
enum tncc_process_res tncc_process_if_tnccs (struct tncc_data *tncc, const u8 *msg, size_t len)
 
struct tncc_datatncc_init (void)
 
void tncc_deinit (struct tncc_data *tncc)
 
struct wpabuftncc_process_soh_request (int ver, const u8 *data, size_t len)
 

Detailed Description

EAP-TNC - TNCC (IF-IMC and IF-TNCCS)

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"