Make peer headers build with C++ sources
[libeap.git] / src / eap_peer / eap_i.h
index 25c0bb6..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 {
@@ -328,12 +332,13 @@ struct eap_sm {
 
        /* Optional challenges generated in Phase 1 (EAP-FAST) */
        u8 *peer_challenge, *auth_challenge;
-       int mschapv2_full_key; /* Request full MSCHAPv2 key */
 
        int num_rounds;
        int force_disabled;
 
        struct wps_context *wps;
+
+       int prev_failure;
 };
 
 const u8 * eap_get_config_identity(struct eap_sm *sm, size_t *len);
@@ -344,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 *
@@ -351,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 */