Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / src / eap_common / eap_ttls.h
index 7cb45fc..f439da2 100644 (file)
@@ -2,14 +2,8 @@
  * EAP server/peer: EAP-TTLS (RFC 5281)
  * Copyright (c) 2004-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.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #ifndef EAP_TTLS_H
@@ -35,6 +29,7 @@ struct ttls_avp_vendor {
        /* Data */
 };
 
+
 #define AVP_FLAGS_VENDOR 0x80
 #define AVP_FLAGS_MANDATORY 0x40
 
@@ -52,6 +47,7 @@ do { \
 #define RADIUS_ATTR_USER_PASSWORD 2
 #define RADIUS_ATTR_CHAP_PASSWORD 3
 #define RADIUS_ATTR_REPLY_MESSAGE 18
+#define RADIUS_ATTR_VENDOR_SPECIFIC 26
 #define RADIUS_ATTR_CHAP_CHALLENGE 60
 #define RADIUS_ATTR_EAP_MESSAGE 79
 
@@ -65,9 +61,6 @@ do { \
 #define RADIUS_ATTR_MS_CHAP2_SUCCESS 26
 #define RADIUS_ATTR_MS_CHAP2_CPW 27
 
-/* draft TTLS-EAP-CHBIND */
-#define DIAMETER_ATTR_CHBIND_MESSAGE 0xFFFFFE /* experimental, for now */
-
 #define EAP_TTLS_MSCHAPV2_CHALLENGE_LEN 16
 #define EAP_TTLS_MSCHAPV2_RESPONSE_LEN 50
 #define EAP_TTLS_MSCHAP_CHALLENGE_LEN 8
@@ -75,6 +68,9 @@ do { \
 #define EAP_TTLS_CHAP_CHALLENGE_LEN 16
 #define EAP_TTLS_CHAP_PASSWORD_LEN 16
 
+#define RADIUS_VENDOR_ID_UKERNA 25622
+#define RADIUS_ATTR_UKERNA_CHBIND 135
+
 #ifdef __cplusplus
 }
 #endif