2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
|
|
|
|
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TNCC_H
|
|
|
|
#define TNCC_H
|
|
|
|
|
|
|
|
struct tncc_data;
|
|
|
|
|
|
|
|
struct tncc_data * tncc_init(void);
|
|
|
|
void tncc_deinit(struct tncc_data *tncc);
|
|
|
|
void tncc_init_connection(struct tncc_data *tncc);
|
|
|
|
size_t tncc_total_send_len(struct tncc_data *tncc);
|
|
|
|
u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos);
|
|
|
|
char * tncc_if_tnccs_start(struct tncc_data *tncc);
|
|
|
|
char * tncc_if_tnccs_end(void);
|
|
|
|
|
|
|
|
enum tncc_process_res {
|
|
|
|
TNCCS_PROCESS_ERROR = -1,
|
|
|
|
TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
|
|
|
|
TNCCS_RECOMMENDATION_ERROR,
|
|
|
|
TNCCS_RECOMMENDATION_ALLOW,
|
|
|
|
TNCCS_RECOMMENDATION_NONE,
|
|
|
|
TNCCS_RECOMMENDATION_ISOLATE
|
|
|
|
};
|
|
|
|
|
|
|
|
enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
|
|
|
|
const u8 *msg, size_t len);
|
|
|
|
|
2008-04-08 15:15:56 +02:00
|
|
|
struct wpabuf * tncc_process_soh_request(const u8 *data, size_t len);
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
#endif /* TNCC_H */
|