summaryrefslogtreecommitdiff
path: root/contrib/hostapd/eap.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hostapd/eap.h')
-rw-r--r--contrib/hostapd/eap.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/hostapd/eap.h b/contrib/hostapd/eap.h
index 01f47dad12e4..c5c62eb57c72 100644
--- a/contrib/hostapd/eap.h
+++ b/contrib/hostapd/eap.h
@@ -30,6 +30,7 @@ struct eapol_callbacks {
size_t eapKeyDataLen);
int (*get_eap_user)(void *ctx, const u8 *identity, size_t identity_len,
int phase2, struct eap_user *user);
+ const char * (*get_eap_req_id_text)(void *ctx, size_t *len);
};
struct eap_config {
@@ -39,7 +40,7 @@ struct eap_config {
};
-#ifdef EAP_AUTHENTICATOR
+#ifdef EAP_SERVER
struct eap_sm * eap_sm_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
struct eap_config *eap_conf);
@@ -48,8 +49,9 @@ int eap_sm_step(struct eap_sm *sm);
u8 eap_get_type(const char *name);
void eap_set_eapRespData(struct eap_sm *sm, const u8 *eapRespData,
size_t eapRespDataLen);
+void eap_sm_notify_cached(struct eap_sm *sm);
-#else /* EAP_AUTHENTICATOR */
+#else /* EAP_SERVER */
static inline struct eap_sm * eap_sm_init(void *eapol_ctx,
struct eapol_callbacks *eapol_cb,
@@ -78,6 +80,10 @@ static inline void eap_set_eapRespData(struct eap_sm *sm,
{
}
-#endif /* EAP_AUTHENTICATOR */
+static inline void eap_sm_notify_cached(struct eap_sm *sm)
+{
+}
+
+#endif /* EAP_SERVER */
#endif /* EAP_H */