summaryrefslogtreecommitdiffstats
path: root/contrib/wpa_supplicant/eap_tlv.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/wpa_supplicant/eap_tlv.h')
-rw-r--r--contrib/wpa_supplicant/eap_tlv.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/contrib/wpa_supplicant/eap_tlv.h b/contrib/wpa_supplicant/eap_tlv.h
index 4391552..6a5afe0 100644
--- a/contrib/wpa_supplicant/eap_tlv.h
+++ b/contrib/wpa_supplicant/eap_tlv.h
@@ -1,3 +1,17 @@
+/*
+ * WPA Supplicant / EAP-TLV (draft-josefsson-pppext-eap-tls-eap-07.txt)
+ * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.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 EAP_TLV_H
#define EAP_TLV_H
@@ -65,9 +79,9 @@ struct eap_tlv_pac_ack_tlv {
#define EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE 1
-u8 * eap_tlv_build_nak(int id, int nak_type, size_t *resp_len);
-u8 * eap_tlv_build_result(int id, int status, size_t *resp_len);
+u8 * eap_tlv_build_nak(int id, u16 nak_type, size_t *resp_len);
+u8 * eap_tlv_build_result(int id, u16 status, size_t *resp_len);
int eap_tlv_process(struct eap_sm *sm, struct eap_method_ret *ret,
- struct eap_hdr *hdr, u8 **resp, size_t *resp_len);
+ const struct eap_hdr *hdr, u8 **resp, size_t *resp_len);
#endif /* EAP_TLV_H */
OpenPOWER on IntegriCloud