wlan_sme/ap/
authenticator.rsuse fidl_fuchsia_wlan_mlme::EapolResultCode;
use wlan_rsn::rsna::UpdateSink;
use wlan_rsn::{Error, NegotiatedProtection};
pub trait Authenticator: std::fmt::Debug + std::marker::Send {
fn get_negotiated_protection(&self) -> &NegotiatedProtection;
fn reset(&mut self);
fn initiate(&mut self, update_sink: &mut UpdateSink) -> Result<(), Error>;
fn on_eapol_frame(
&mut self,
update_sink: &mut UpdateSink,
frame: eapol::Frame<&[u8]>,
) -> Result<(), Error>;
fn on_eapol_conf(
&mut self,
update_sink: &mut UpdateSink,
result: EapolResultCode,
) -> Result<(), Error>;
}
impl Authenticator for wlan_rsn::Authenticator {
fn get_negotiated_protection(&self) -> &NegotiatedProtection {
wlan_rsn::Authenticator::get_negotiated_protection(self)
}
fn reset(&mut self) {
wlan_rsn::Authenticator::reset(self)
}
fn initiate(&mut self, update_sink: &mut UpdateSink) -> Result<(), Error> {
wlan_rsn::Authenticator::initiate(self, update_sink)
}
fn on_eapol_frame(
&mut self,
update_sink: &mut UpdateSink,
frame: eapol::Frame<&[u8]>,
) -> Result<(), Error> {
wlan_rsn::Authenticator::on_eapol_frame(self, update_sink, frame)
}
fn on_eapol_conf(
&mut self,
update_sink: &mut UpdateSink,
result: EapolResultCode,
) -> Result<(), Error> {
wlan_rsn::Authenticator::on_eapol_conf(self, update_sink, result)
}
}