Received Success-Request Packet

If the currentState variable is set to EAP_CHAP_CHALLENGE_RESPONSE_SENT, then:

  • Validate the embedded MSCHAPv2 Success packet, as specified in [RFC2759] section 8.8.

  • If the validation is successful, then:

    • Prepare a Success-Response packet, and send it to the server.

    • Set currentState to EAP_CHAP_SUCCESS_RESPONSE_SENT.

  • If validation fails, then:

    • Trigger the transport layer with the authentication result as Failed.

    • Set currentState to EAP_CHAP_FAILED.

If the currentState variable is not set to EAP_CHAP_CHALLENGE_RESPONSE_SENT, the packet is ignored.