Implement AwaitingEapFailureState for EAP MSCHAPv2.

EAP MSCHAPv2 uses theAwaitingEapFailureState for message-handling after
receiving - and responding to - EAP MSCHAPv2 FailureRequest messages. In
this state, EAP-Failure messages are expected and after reception, the
state machine transitions to the FinalState and returns an EapFailure.

If EAP-Success messages are received, they are logged. The state machine
then transitions to the FinalState and returns an EapFailure.

If EAP-Request/Notification messages are received, they are processed
and responded to with EAP-Response/Notification messages.

Any other EAP messages are logged and the appropriate EapError is
returned.

Bug: 141483998
Test: added EapMsChapV2AwaitingEapFailureStateTest.
Test: atest FrameworksIkeTests
Change-Id: Ieba8ef5a0709d61b01d70fb1db68d59935659e89
2 files changed
tree: c1c22295bdd86eaef0b23a8bb1ecfdb9700c46e0
  1. src/
  2. tests/
  3. Android.bp
  4. OWNERS
  5. PREUPLOAD.cfg
  6. README.md
  7. TEST_MAPPING
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.