tncs.h

Go to the documentation of this file.
00001 
00016 #ifndef TNCS_H
00017 #define TNCS_H
00018 
00019 struct tncs_data;
00020 
00021 struct tncs_data * tncs_init(void);
00022 void tncs_deinit(struct tncs_data *tncs);
00023 void tncs_init_connection(struct tncs_data *tncs);
00024 size_t tncs_total_send_len(struct tncs_data *tncs);
00025 u8 * tncs_copy_send_buf(struct tncs_data *tncs, u8 *pos);
00026 char * tncs_if_tnccs_start(struct tncs_data *tncs);
00027 char * tncs_if_tnccs_end(void);
00028 
00029 enum tncs_process_res {
00030         TNCCS_PROCESS_ERROR = -1,
00031         TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
00032         TNCCS_RECOMMENDATION_ERROR,
00033         TNCCS_RECOMMENDATION_ALLOW,
00034         TNCCS_RECOMMENDATION_NONE,
00035         TNCCS_RECOMMENDATION_ISOLATE,
00036         TNCCS_RECOMMENDATION_NO_ACCESS,
00037         TNCCS_RECOMMENDATION_NO_RECOMMENDATION
00038 };
00039 
00040 enum tncs_process_res tncs_process_if_tnccs(struct tncs_data *tncs,
00041                                             const u8 *msg, size_t len);
00042 
00043 int tncs_global_init(void);
00044 void tncs_global_deinit(void);
00045 
00046 struct wpabuf * tncs_build_soh_request(void);
00047 struct wpabuf * tncs_process_soh(const u8 *soh_tlv, size_t soh_tlv_len,
00048                                  int *failure);
00049 
00050 #endif /* TNCS_H */
00051 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:52 2009 for hostapd by  doxygen 1.6.1