2023-01-02 06:00:29 +01:00
|
|
|
mod server;
|
|
|
|
pub use server::FabFire;
|
|
|
|
|
|
|
|
use rsasl::mechname::Mechname;
|
2023-02-09 17:07:22 +01:00
|
|
|
use rsasl::registry::{Matches, Mechanism, Named, Side, MECHANISMS};
|
2023-01-02 06:00:29 +01:00
|
|
|
|
|
|
|
const MECHNAME: &'static Mechname = &Mechname::const_new_unchecked(b"X-FABFIRE-BIN");
|
|
|
|
|
|
|
|
#[linkme::distributed_slice(MECHANISMS)]
|
2023-02-09 17:07:22 +01:00
|
|
|
pub static FABFIRE: Mechanism = Mechanism::build(
|
|
|
|
MECHNAME,
|
|
|
|
300,
|
|
|
|
None,
|
|
|
|
Some(FabFire::new_server),
|
|
|
|
Side::Client,
|
|
|
|
|_| Some(Matches::<Select>::name()),
|
|
|
|
|_| true,
|
|
|
|
);
|
|
|
|
|
|
|
|
struct Select;
|
|
|
|
impl Named for Select {
|
|
|
|
fn mech() -> &'static Mechanism {
|
|
|
|
&FABFIRE
|
|
|
|
}
|
|
|
|
}
|