Classes |
struct | tnc_if_imc |
struct | tncc_data |
Defines |
#define | IF_TNCCS_END "\n</TNCCS-Batch>" |
#define | IF_TNCCS_START |
#define | TNC_CONFIG_FILE "/etc/tnc_config" |
#define | TNC_CONNECTION_STATE_ACCESS_ALLOWED 2 |
#define | TNC_CONNECTION_STATE_ACCESS_ISOLATED 3 |
#define | TNC_CONNECTION_STATE_ACCESS_NONE 4 |
#define | TNC_CONNECTION_STATE_CREATE 0 |
#define | TNC_CONNECTION_STATE_DELETE 5 |
#define | TNC_CONNECTION_STATE_HANDSHAKE 1 |
#define | TNC_IFIMC_VERSION_1 1 |
#define | TNC_MAX_IMC_ID 10 |
#define | TNC_RESULT_ALREADY_INITIALIZED 2 |
#define | TNC_RESULT_CANT_RESPOND 7 |
#define | TNC_RESULT_CANT_RETRY 4 |
#define | TNC_RESULT_FATAL 10 |
#define | TNC_RESULT_ILLEGAL_OPERATION 8 |
#define | TNC_RESULT_INVALID_PARAMETER 6 |
#define | TNC_RESULT_NO_COMMON_VERSION 3 |
#define | TNC_RESULT_NOT_INITIALIZED 1 |
#define | TNC_RESULT_OTHER 9 |
#define | TNC_RESULT_SUCCESS 0 |
#define | TNC_RESULT_WONT_RETRY 5 |
#define | TNC_SUBTYPE_ANY ((TNC_MessageSubtype) 0xff) |
#define | TNC_TNCCS_ERROR 0x00000002 |
#define | TNC_TNCCS_PREFERREDLANGUAGE 0x00000003 |
#define | TNC_TNCCS_REASONSTRINGS 0x00000004 |
#define | TNC_TNCCS_RECOMMENDATION 0x00000001 |
#define | TNC_VENDORID_ANY ((TNC_VendorID) 0xffffff) |
#define | TNC_WINREG_PATH TEXT("SOFTWARE\\Trusted Computing Group\\TNC\\IMCs") |
#define | TSTR "%s" |
Typedefs |
typedef unsigned char * | TNC_BufferReference |
typedef TNC_UInt32 | TNC_ConnectionID |
typedef TNC_UInt32 | TNC_ConnectionState |
typedef TNC_UInt32 | TNC_IMCID |
typedef TNC_UInt32 | TNC_MessageSubtype |
typedef TNC_UInt32 | TNC_MessageType |
typedef TNC_MessageType * | TNC_MessageTypeList |
typedef TNC_UInt32 | TNC_Result |
typedef TNC_UInt32 | TNC_RetryReason |
typedef TNC_Result(* | TNC_TNCC_BindFunctionPointer )(TNC_IMCID imcID, char *functionName, void **pOutfunctionPointer) |
typedef unsigned long | TNC_UInt32 |
typedef TNC_UInt32 | TNC_VendorID |
typedef TNC_UInt32 | TNC_Version |
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_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) |
TNC_Result | TNC_TNCC_ReportMessageTypes (TNC_IMCID imcID, TNC_MessageTypeList supportedTypes, TNC_UInt32 typeCount) |
TNC_Result | TNC_TNCC_RequestHandshakeRetry (TNC_IMCID imcID, TNC_ConnectionID connectionID, TNC_RetryReason reason) |
TNC_Result | TNC_TNCC_SendMessage (TNC_IMCID imcID, TNC_ConnectionID connectionID, TNC_BufferReference message, TNC_UInt32 messageLength, TNC_MessageType messageType) |
static struct wpabuf * | tncc_build_soh (int ver) |
u8 * | tncc_copy_send_buf (struct tncc_data *tncc, u8 *pos) |
void | tncc_deinit (struct tncc_data *tncc) |
static unsigned char * | tncc_get_base64 (char *start, size_t *decoded_len) |
static enum tncc_process_res | tncc_get_recommendation (char *start) |
static void * | tncc_get_sym (void *handle, char *func) |
static int | tncc_get_type (char *start, unsigned int *type) |
char * | tncc_if_tnccs_end (void) |
char * | tncc_if_tnccs_start (struct tncc_data *tncc) |
static int | tncc_imc_begin_handshake (struct tnc_if_imc *imc) |
static int | tncc_imc_initialize (struct tnc_if_imc *imc) |
static int | tncc_imc_notify_connection_change (struct tnc_if_imc *imc, TNC_ConnectionState state) |
static int | tncc_imc_provide_bind_function (struct tnc_if_imc *imc) |
static int | tncc_imc_resolve_funcs (struct tnc_if_imc *imc) |
static int | tncc_imc_terminate (struct tnc_if_imc *imc) |
struct tncc_data * | tncc_init (void) |
void | tncc_init_connection (struct tncc_data *tncc) |
static int | tncc_load_imc (struct tnc_if_imc *imc) |
static void | tncc_notify_recommendation (struct tncc_data *tncc, enum tncc_process_res res) |
static struct tnc_if_imc * | tncc_parse_imc (char *start, char *end, int *error) |
enum tncc_process_res | tncc_process_if_tnccs (struct tncc_data *tncc, const u8 *msg, size_t len) |
struct wpabuf * | tncc_process_soh_request (int ver, const u8 *data, size_t len) |
static int | tncc_read_config (struct tncc_data *tncc) |
static void | tncc_send_to_imcs (struct tncc_data *tncc, unsigned int type, const u8 *msg, size_t len) |
static int | tncc_supported_type (struct tnc_if_imc *imc, unsigned int type) |
size_t | tncc_total_send_len (struct tncc_data *tncc) |
static void | tncc_unload_imc (struct tnc_if_imc *imc) |
Variables |
static struct tnc_if_imc * | tnc_imc [TNC_MAX_IMC_ID] = { NULL } |