wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tncs.h
Go to the documentation of this file.
1 
5 #ifndef TNCS_H
6 #define TNCS_H
7 
8 struct tncs_data;
9 
10 struct tncs_data * tncs_init(void);
11 void tncs_deinit(struct tncs_data *tncs);
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);
17 
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
27 };
28 
29 enum tncs_process_res tncs_process_if_tnccs(struct tncs_data *tncs,
30  const u8 *msg, size_t len);
31 
32 int tncs_global_init(void);
33 void tncs_global_deinit(void);
34 
35 struct wpabuf * tncs_build_soh_request(void);
36 struct wpabuf * tncs_process_soh(const u8 *soh_tlv, size_t soh_tlv_len,
37  int *failure);
38 
39 #endif /* TNCS_H */
Definition: tncs.c:73
Definition: wpabuf.h:16