Hi,<br><br>I'm using wpa_supplicant-0.6.9 as a library and used the eap_example_peer.c as a basis for the EAP-TLS authentication I'm trying to complete. My question is if I have an EAP message with multiple fragments, how would I request those from the wpa_supplicant?<br>
<br style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255);">In the code below I'm running eap_get_eapRespData in a loop while </span><span style="background-color: rgb(255, 255, 153);"><span style="background-color: rgb(255, 255, 255);">eap_ctx.eapResp.</span><br style="background-color: rgb(255, 255, 255);">
<span style="background-color: rgb(255, 255, 255);">Is that the correct way of doing it?</span><br style="background-color: rgb(255, 255, 255);"><br style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255);">Any assistance greatly appreciated!</span><br style="background-color: rgb(255, 255, 255);">
<br style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255);">Chris</span><br></span><br><br>// Run EAP Peer Step<br> iRet = eap_peer_sm_step(eap_ctx.eap);<br> if (iRet < 0){<br>
DPRINT_COMMONAPI(DEBUG_ERROR,"\n*******ERROR: Running EAP SM Step");<br> return WIMAX_API_RET_FAILED;<br> }<br> <br><span style="background-color: rgb(255, 255, 153);"> while (eap_ctx.eapResp) {</span><br>
struct wpabuf *resp;<br> eap_ctx.eapResp = FALSE;<br> resp = eap_get_eapRespData(eap_ctx.eap);<br> if (resp) {<br> // Evaluate EAP State<br> wpa_hexdump(MSG_DEBUG, "FROM SUPPLICANT MSG: ",wpabuf_head(resp),wpabuf_len(resp));<br>
<br> /* Send EAP response to the Authenticator */<br> if (! SendMessageFromSupplicantToBs(wpabuf_head(resp),wpabuf_len(resp))) {<br> wpabuf_free(resp);<br> DPRINT_COMMONAPI(DEBUG_ERROR,"\n*******ERROR: In SendMessageFromSupplicantToBs");<br>
}<br> wpabuf_free(resp);<br> }<br> }<br>