EAP-pwd: Add support for EAP-pwd server and peer functionality
[libeap.git] / src / eap_server / eap_i.h
index 6087330..daac746 100644 (file)
@@ -157,7 +157,6 @@ struct eap_sm {
        int user_eap_method_index;
        int init_phase2;
        void *ssl_ctx;
-       enum { TLV_REQ_NONE, TLV_REQ_SUCCESS, TLV_REQ_FAILURE } tlv_request;
        void *eap_sim_db_priv;
        Boolean backend_auth;
        Boolean update_user;
@@ -172,8 +171,27 @@ struct eap_sm {
        u8 *peer_challenge;
 
        u8 *pac_opaque_encr_key;
-       char *eap_fast_a_id;
+       u8 *eap_fast_a_id;
+       size_t eap_fast_a_id_len;
+       char *eap_fast_a_id_info;
+       enum {
+               NO_PROV, ANON_PROV, AUTH_PROV, BOTH_PROV
+       } eap_fast_prov;
+       int pac_key_lifetime;
+       int pac_key_refresh_time;
        int eap_sim_aka_result_ind;
+       int tnc;
+       u16 pwd_group;
+       struct wps_context *wps;
+       struct wpabuf *assoc_wps_ie;
+       struct wpabuf *assoc_p2p_ie;
+
+       Boolean start_reauth;
+
+       u8 peer_addr[ETH_ALEN];
+
+       /* Fragmentation size for EAP method init() handler */
+       int fragment_size;
 };
 
 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len,