]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/eap_peer/tncc.h
Remove the GPL notification from files contributed by Jouni Malinen
[thirdparty/hostap.git] / src / eap_peer / tncc.h
CommitLineData
6fc6879b
JM
1/*
2 * EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
3 * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#ifndef TNCC_H
10#define TNCC_H
11
12struct tncc_data;
13
14struct tncc_data * tncc_init(void);
15void tncc_deinit(struct tncc_data *tncc);
16void tncc_init_connection(struct tncc_data *tncc);
17size_t tncc_total_send_len(struct tncc_data *tncc);
18u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos);
19char * tncc_if_tnccs_start(struct tncc_data *tncc);
20char * tncc_if_tnccs_end(void);
21
22enum tncc_process_res {
23 TNCCS_PROCESS_ERROR = -1,
24 TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
25 TNCCS_RECOMMENDATION_ERROR,
26 TNCCS_RECOMMENDATION_ALLOW,
27 TNCCS_RECOMMENDATION_NONE,
28 TNCCS_RECOMMENDATION_ISOLATE
29};
30
31enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
32 const u8 *msg, size_t len);
33
9478eaef 34struct wpabuf * tncc_process_soh_request(int ver, const u8 *data, size_t len);
01461651 35
6fc6879b 36#endif /* TNCC_H */