wpa_supplicant and OTP
Jouni Malinen
j at w1.fi
Sat Dec 16 03:10:58 PST 2017
On Wed, Dec 13, 2017 at 11:35:39PM +0000, Shriram Jandhyala wrote:
> This works fine for doing basic EAP/RADIUS authentications.
> But when there is a user challenge (over EAP-GTC) for an OTP, I do get a callback to eap_param_needed with wpa_ctrl_req_type set to WPA_CTRL_REQ_EAP_OTP.
> At this point, the eapol_sm is waiting for a response. I am unable to restart the state machine. It does not matter if I set the eap_peer_config->password ot eap_peer_config->otp with the user response (OTP value). The EAP auth eventually times out.
>
> How do I restart the eapol state machine with the OTP supplied?
wpa_supplicant_ctrl_iface_ctrl_rsp_handle() shows which fields needs to
be updated and that update needs to be followed by a call to
eapol_sm_notify_ctrl_response() to let the state machines know about the
new information.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list