Home | History | Annotate | Download | only in eap_peer

Lines Matching defs:tncc

2  * EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
16 #include "tncc.h"
84 /* TNCC-TNCS Message Types */
152 /* TNCC functions that IMCs can call */
534 static void tncc_send_to_imcs(struct tncc_data *tncc, unsigned int type,
542 for (imc = tncc->imc; imc; imc = imc->next) {
558 void tncc_init_connection(struct tncc_data *tncc)
562 for (imc = tncc->imc; imc; imc = imc->next) {
577 size_t tncc_total_send_len(struct tncc_data *tncc)
582 for (imc = tncc->imc; imc; imc = imc->next)
588 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos)
592 for (imc = tncc->imc; imc; imc = imc->next) {
607 char * tncc_if_tnccs_start(struct tncc_data *tncc)
612 tncc->last_batchid++;
613 os_snprintf(buf, 1000, IF_TNCCS_START, tncc->last_batchid);
628 static void tncc_notify_recommendation(struct tncc_data *tncc,
649 for (imc = tncc->imc; imc; imc = imc->next)
734 enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
774 if (batch_id != tncc->last_batchid + 1) {
777 batch_id, tncc->last_batchid + 1);
781 tncc->last_batchid = batch_id;
828 tncc_send_to_imcs(tncc, type, decoded, decoded_len);
836 * <TNCC-TNCS-Message>
840 * </TNCC-TNCS-Message>
848 pos = os_strstr(start, "<TNCC-TNCS-Message>");
852 end = os_strstr(start, "</TNCC-TNCS-Message>");
864 wpa_printf(MSG_DEBUG, "TNC: TNCC-TNCS-Message Type 0x%x",
893 "TNC: TNCC-TNCS-Message Base64",
900 "TNC: TNCC-TNCS-Message XML",
922 tncc_notify_recommendation(tncc, res);
929 static int tncc_read_config_reg(struct tncc_data *tncc, HKEY hive)
937 last = tncc->imc;
1029 tncc->imc = imc;
1043 static int tncc_read_config(struct tncc_data *tncc)
1045 if (tncc_read_config_reg(tncc, HKEY_LOCAL_MACHINE) < 0 ||
1046 tncc_read_config_reg(tncc, HKEY_CURRENT_USER) < 0)
1117 static int tncc_read_config(struct tncc_data *tncc)
1148 tncc->imc = imc;
1166 struct tncc_data *tncc;
1169 tncc = os_zalloc(sizeof(*tncc));
1170 if (tncc == NULL)
1178 if (tncc_read_config(tncc) < 0) {
1183 for (imc = tncc->imc; imc; imc = imc->next) {
1191 return tncc;
1194 tncc_deinit(tncc);
1199 void tncc_deinit(struct tncc_data *tncc)
1203 imc = tncc->imc;
1212 os_free(tncc);