mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-06-11 10:53:19 +02:00
rsasl update
This commit is contained in:
@ -2,13 +2,27 @@ mod server;
|
||||
pub use server::FabFire;
|
||||
|
||||
use rsasl::mechname::Mechname;
|
||||
use rsasl::registry::{Mechanism, Side, MECHANISMS};
|
||||
use rsasl::registry::{Matches, Mechanism, Named, Side, MECHANISMS};
|
||||
|
||||
const MECHNAME: &'static Mechname = &Mechname::const_new_unchecked(b"X-FABFIRE");
|
||||
|
||||
#[linkme::distributed_slice(MECHANISMS)]
|
||||
pub static FABFIRE: Mechanism =
|
||||
Mechanism::build(MECHNAME, 300, None, Some(FabFire::new_server), Side::Client);
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
use rsasl::property::SizedProperty;
|
||||
use std::marker::PhantomData;
|
||||
|
Reference in New Issue
Block a user