automake build system
[mech_eap.orig] / src / eap_common / eap_defs.h
index abf7a9e..482f9d2 100644 (file)
 #ifndef EAP_DEFS_H
 #define EAP_DEFS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* RFC 3748 - Extensible Authentication Protocol (EAP) */
 
 #ifdef _MSC_VER
@@ -53,7 +57,7 @@ typedef enum {
        EAP_TYPE_TLS = 13 /* RFC 2716 */,
        EAP_TYPE_LEAP = 17 /* Cisco proprietary */,
        EAP_TYPE_SIM = 18 /* RFC 4186 */,
-       EAP_TYPE_TTLS = 21 /* draft-ietf-pppext-eap-ttls-02.txt */,
+       EAP_TYPE_TTLS = 21 /* RFC 5281 */,
        EAP_TYPE_AKA = 23 /* RFC 4187 */,
        EAP_TYPE_PEAP = 25 /* draft-josefsson-pppext-eap-tls-eap-06.txt */,
        EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */,
@@ -66,9 +70,10 @@ typedef enum {
        EAP_TYPE_PSK = 47 /* RFC 4764 */,
        EAP_TYPE_SAKE = 48 /* RFC 4763 */,
        EAP_TYPE_IKEV2 = 49 /* RFC 5106 */,
-       EAP_TYPE_EXPANDED = 254 /* RFC 3748 */,
-       EAP_TYPE_GPSK = 255 /* EXPERIMENTAL - type not yet allocated
-                            * draft-ietf-emu-eap-gpsk-01.txt */
+       EAP_TYPE_AKA_PRIME = 50 /* draft-arkko-eap-aka-kdf-10.txt */,
+       EAP_TYPE_GPSK = 51 /* RFC 5433 */,
+       EAP_TYPE_PWD = 52 /* RFC 5931 */,
+       EAP_TYPE_EXPANDED = 254 /* RFC 3748 */
 } EapType;
 
 
@@ -82,4 +87,8 @@ enum {
 #define EAP_MSK_LEN 64
 #define EAP_EMSK_LEN 64
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_DEFS_H */