tncc.h
Go to the documentation of this file.
00001 /*
00002  * EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
00003  * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef TNCC_H
00016 #define TNCC_H
00017 
00018 struct tncc_data;
00019 
00020 struct tncc_data * tncc_init(void);
00021 void tncc_deinit(struct tncc_data *tncc);
00022 void tncc_init_connection(struct tncc_data *tncc);
00023 size_t tncc_total_send_len(struct tncc_data *tncc);
00024 u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos);
00025 char * tncc_if_tnccs_start(struct tncc_data *tncc);
00026 char * tncc_if_tnccs_end(void);
00027 
00028 enum tncc_process_res {
00029         TNCCS_PROCESS_ERROR = -1,
00030         TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
00031         TNCCS_RECOMMENDATION_ERROR,
00032         TNCCS_RECOMMENDATION_ALLOW,
00033         TNCCS_RECOMMENDATION_NONE,
00034         TNCCS_RECOMMENDATION_ISOLATE
00035 };
00036 
00037 enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
00038                                             const u8 *msg, size_t len);
00039 
00040 struct wpabuf * tncc_process_soh_request(int ver, const u8 *data, size_t len);
00041 
00042 #endif /* TNCC_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:36