automake build system
[mech_eap.orig] / src / eap_peer / eap_i.h
index 4b7029e..d6c391c 100644 (file)
 #include "eap_peer/eap.h"
 #include "eap_common/eap_common.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* RFC 4137 - EAP Peer state machine */
 
 typedef enum {
@@ -333,6 +337,8 @@ struct eap_sm {
        int force_disabled;
 
        struct wps_context *wps;
+
+       int prev_failure;
 };
 
 const u8 * eap_get_config_identity(struct eap_sm *sm, size_t *len);
@@ -343,6 +349,7 @@ const u8 * eap_get_config_otp(struct eap_sm *sm, size_t *len);
 void eap_clear_config_otp(struct eap_sm *sm);
 const char * eap_get_config_phase1(struct eap_sm *sm);
 const char * eap_get_config_phase2(struct eap_sm *sm);
+int eap_get_config_fragment_size(struct eap_sm *sm);
 struct eap_peer_config * eap_get_config(struct eap_sm *sm);
 void eap_set_config_blob(struct eap_sm *sm, struct wpa_config_blob *blob);
 const struct wpa_config_blob *
@@ -350,4 +357,8 @@ eap_get_config_blob(struct eap_sm *sm, const char *name);
 void eap_notify_pending(struct eap_sm *sm);
 int eap_allowed_method(struct eap_sm *sm, int vendor, u32 method);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_I_H */