]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/eap_server/tncs.h
Remove the GPL notification from files contributed by Jouni Malinen
[thirdparty/hostap.git] / src / eap_server / tncs.h
CommitLineData
da08a7c7 1/*
1c2ff04f 2 * EAP-TNC - TNCS (IF-IMV, IF-TNCCS, and IF-TNCCS-SOH)
da08a7c7
JM
3 * Copyright (c) 2007-2008, 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.
da08a7c7
JM
7 */
8
9#ifndef TNCS_H
10#define TNCS_H
11
12struct tncs_data;
13
14struct tncs_data * tncs_init(void);
15void tncs_deinit(struct tncs_data *tncs);
16void tncs_init_connection(struct tncs_data *tncs);
17size_t tncs_total_send_len(struct tncs_data *tncs);
18u8 * tncs_copy_send_buf(struct tncs_data *tncs, u8 *pos);
19char * tncs_if_tnccs_start(struct tncs_data *tncs);
20char * tncs_if_tnccs_end(void);
21
22enum tncs_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 TNCCS_RECOMMENDATION_NO_ACCESS,
30 TNCCS_RECOMMENDATION_NO_RECOMMENDATION
31};
32
33enum tncs_process_res tncs_process_if_tnccs(struct tncs_data *tncs,
34 const u8 *msg, size_t len);
35
36int tncs_global_init(void);
37void tncs_global_deinit(void);
38
1c2ff04f
JM
39struct wpabuf * tncs_build_soh_request(void);
40struct wpabuf * tncs_process_soh(const u8 *soh_tlv, size_t soh_tlv_len,
41 int *failure);
42
da08a7c7 43#endif /* TNCS_H */