Function fullmac_helpers::fake_ap::handle_fourway_eapol_handshake

source ยท
pub async fn handle_fourway_eapol_handshake(
    authenticator: &mut Authenticator,
    frame_to_client: KeyFrameBuf,
    bssid: [u8; 6],
    client_sta_addr: [u8; 6],
    fullmac_req_stream: &mut RecordedRequestStream,
    fullmac_ifc_proxy: &WlanFullmacImplIfcProxy,
) -> UpdateSink
Expand description

Uses |fullmac_req_stream| and |fullmac_ifc_proxy| to perform an EAPOL handshake as an authenticator. This assumes that |authenticator| is already initiated. |frame_to_client| is the first EAPOL frame that the authenticator sends.

Returns the UpdateSink of |authenticator|. By the end of a successful EAPOL handshake, the UpdateSink should include all the keys for a successful EAPOL handshake. Panics if the handshake fails for any reason.