12 void tncs_init_connection(
struct tncs_data *tncs);
13 size_t tncs_total_send_len(
struct tncs_data *tncs);
14 u8 * tncs_copy_send_buf(
struct tncs_data *tncs, u8 *pos);
15 char * tncs_if_tnccs_start(
struct tncs_data *tncs);
16 char * tncs_if_tnccs_end(
void);
18 enum tncs_process_res {
19 TNCCS_PROCESS_ERROR = -1,
20 TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
21 TNCCS_RECOMMENDATION_ERROR,
22 TNCCS_RECOMMENDATION_ALLOW,
23 TNCCS_RECOMMENDATION_NONE,
24 TNCCS_RECOMMENDATION_ISOLATE,
25 TNCCS_RECOMMENDATION_NO_ACCESS,
26 TNCCS_RECOMMENDATION_NO_RECOMMENDATION
29 enum tncs_process_res tncs_process_if_tnccs(
struct tncs_data *tncs,
30 const u8 *msg,
size_t len);
32 int tncs_global_init(
void);
33 void tncs_global_deinit(
void);
35 struct wpabuf * tncs_build_soh_request(
void);
36 struct wpabuf * tncs_process_soh(
const u8 *soh_tlv,
size_t soh_tlv_len,