Home | History | Annotate | Download | only in eap_peer

Lines Matching defs:tncc

2  * EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
22 #include "tncc.h"
90 /* TNCC-TNCS Message Types */
158 /* TNCC functions that IMCs can call */
540 static void tncc_send_to_imcs(struct tncc_data *tncc, unsigned int type,
548 for (imc = tncc->imc; imc; imc = imc->next) {
564 void tncc_init_connection(struct tncc_data *tncc)
568 for (imc = tncc->imc; imc; imc = imc->next) {
583 size_t tncc_total_send_len(struct tncc_data *tncc)
588 for (imc = tncc->imc; imc; imc = imc->next)
594 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos)
598 for (imc = tncc->imc; imc; imc = imc->next) {
613 char * tncc_if_tnccs_start(struct tncc_data *tncc)
618 tncc->last_batchid++;
619 os_snprintf(buf, 1000, IF_TNCCS_START, tncc->last_batchid);
634 static void tncc_notify_recommendation(struct tncc_data *tncc,
655 for (imc = tncc->imc; imc; imc = imc->next)
740 enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
780 if (batch_id != tncc->last_batchid + 1) {
783 batch_id, tncc->last_batchid + 1);
787 tncc->last_batchid = batch_id;
834 tncc_send_to_imcs(tncc, type, decoded, decoded_len);
842 * <TNCC-TNCS-Message>
846 * </TNCC-TNCS-Message>
854 pos = os_strstr(start, "<TNCC-TNCS-Message>");
858 end = os_strstr(start, "</TNCC-TNCS-Message>");
870 wpa_printf(MSG_DEBUG, "TNC: TNCC-TNCS-Message Type 0x%x",
899 "TNC: TNCC-TNCS-Message Base64",
906 "TNC: TNCC-TNCS-Message XML",
928 tncc_notify_recommendation(tncc, res);
935 static int tncc_read_config_reg(struct tncc_data *tncc, HKEY hive)
943 last = tncc->imc;
1035 tncc->imc = imc;
1049 static int tncc_read_config(struct tncc_data *tncc)
1051 if (tncc_read_config_reg(tncc, HKEY_LOCAL_MACHINE) < 0 ||
1052 tncc_read_config_reg(tncc, HKEY_CURRENT_USER) < 0)
1123 static int tncc_read_config(struct tncc_data *tncc)
1154 tncc->imc = imc;
1172 struct tncc_data *tncc;
1175 tncc = os_zalloc(sizeof(*tncc));
1176 if (tncc == NULL)
1184 if (tncc_read_config(tncc) < 0) {
1189 for (imc = tncc->imc; imc; imc = imc->next) {
1197 return tncc;
1200 tncc_deinit(tncc);
1205 void tncc_deinit(struct tncc_data *tncc)
1209 imc = tncc->imc;
1218 os_free(tncc);