tncc.h 994 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * EAP-TNC - TNCC (IF-IMC and IF-TNCCS)
  3. * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef TNCC_H
  9. #define TNCC_H
  10. struct tncc_data;
  11. struct tncc_data * tncc_init(void);
  12. void tncc_deinit(struct tncc_data *tncc);
  13. void tncc_init_connection(struct tncc_data *tncc);
  14. size_t tncc_total_send_len(struct tncc_data *tncc);
  15. u8 * tncc_copy_send_buf(struct tncc_data *tncc, u8 *pos);
  16. char * tncc_if_tnccs_start(struct tncc_data *tncc);
  17. char * tncc_if_tnccs_end(void);
  18. enum tncc_process_res {
  19. TNCCS_PROCESS_ERROR = -1,
  20. TNCCS_PROCESS_OK_NO_RECOMMENDATION = 0,
  21. TNCCS_RECOMMENDATION_ERROR,
  22. TNCCS_RECOMMENDATION_ALLOW,
  23. TNCCS_RECOMMENDATION_NONE,
  24. TNCCS_RECOMMENDATION_ISOLATE
  25. };
  26. enum tncc_process_res tncc_process_if_tnccs(struct tncc_data *tncc,
  27. const u8 *msg, size_t len);
  28. struct wpabuf * tncc_process_soh_request(int ver, const u8 *data, size_t len);
  29. #endif /* TNCC_H */