mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 03:33:48 +01:00
rsasl update
This commit is contained in:
parent
27f5413e3d
commit
98c2e3fd01
926
Cargo.lock
generated
926
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -113,7 +113,7 @@ rustls-native-certs = "0.6.1"
|
|||||||
shadow-rs = "0.11"
|
shadow-rs = "0.11"
|
||||||
|
|
||||||
[dependencies.rsasl]
|
[dependencies.rsasl]
|
||||||
version = "2.0.0-rc.3"
|
version = "2.0.0"
|
||||||
default_features = false
|
default_features = false
|
||||||
features = ["unstable_custom_mechanism", "provider", "registry_static", "config_builder", "plain"]
|
features = ["unstable_custom_mechanism", "provider", "registry_static", "config_builder", "plain"]
|
||||||
|
|
||||||
|
@ -2,13 +2,27 @@ mod server;
|
|||||||
pub use server::FabFire;
|
pub use server::FabFire;
|
||||||
|
|
||||||
use rsasl::mechname::Mechname;
|
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");
|
const MECHNAME: &'static Mechname = &Mechname::const_new_unchecked(b"X-FABFIRE");
|
||||||
|
|
||||||
#[linkme::distributed_slice(MECHANISMS)]
|
#[linkme::distributed_slice(MECHANISMS)]
|
||||||
pub static FABFIRE: Mechanism =
|
pub static FABFIRE: Mechanism = Mechanism::build(
|
||||||
Mechanism::build(MECHNAME, 300, None, Some(FabFire::new_server), Side::Client);
|
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 rsasl::property::SizedProperty;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
@ -2,10 +2,24 @@ mod server;
|
|||||||
pub use server::FabFire;
|
pub use server::FabFire;
|
||||||
|
|
||||||
use rsasl::mechname::Mechname;
|
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-BIN");
|
const MECHNAME: &'static Mechname = &Mechname::const_new_unchecked(b"X-FABFIRE-BIN");
|
||||||
|
|
||||||
#[linkme::distributed_slice(MECHANISMS)]
|
#[linkme::distributed_slice(MECHANISMS)]
|
||||||
pub static FABFIRE: Mechanism =
|
pub static FABFIRE: Mechanism = Mechanism::build(
|
||||||
Mechanism::build(MECHNAME, 300, None, Some(FabFire::new_server), Side::Client);
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user