D6H7OWTTMHHX6BTB3B6MNBOBX2L66CBL4LGSEUSAI2MCRCJDQFRQC
2Q3SZY2CYYLQU5KOTZMVYBQ5B2T4K2Z37VN7PPR4DLBAAHS6XJUAC
VJIXIN4TVZX2ZELE3H5PVZIO6JIG7JZ3UKEJC7TAUYLOPW6GOGOQC
7FRJYUI62VW257VVFQXND6OKSAILVTHGEJCXFE6CG6FIOIUTDVYAC
UHAEQPZUODJ5YVBZJPPJVLO7EBW6DC2JXHQBN26ARELAVULG3JUQC
WXZWQLGLNQ3QRHMBH7YPTHKSPUST4HD34H3PW5E4LHQYH3KLNHYAC
EUHO3DAZ4D3LMHYJDLVLXBHIFAUKXMNFNDLE5ZHG4T7SVJMG55EAC
pub const DEFAULT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT],
pub const DEFAULT_SERVER: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_S],
key: &[
key::ED25519,
key::ECDSA_SHA2_NISTP256,
key::RSA_SHA2_256,
key::RSA_SHA2_512,
],
cipher: &[cipher::chacha20poly1305::NAME],
mac: &["none"],
compression: &["none", "zlib", "zlib@openssh.com"],
};
#[cfg(all(feature = "openssl", feature = "p256"))]
pub const DEFAULT_CLIENT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_C],
pub const DEFAULT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT],
pub const DEFAULT_SERVER: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_S],
key: &[key::ED25519, key::ECDSA_SHA2_NISTP256],
cipher: &[cipher::chacha20poly1305::NAME],
mac: &["none"],
compression: &["none", "zlib", "zlib@openssh.com"],
};
#[cfg(all(not(feature = "openssl"), feature = "p256"))]
pub const DEFAULT_CLIENT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_C],
pub const DEFAULT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT],
pub const DEFAULT_SERVER: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_S],
key: &[key::ED25519, key::RSA_SHA2_256, key::RSA_SHA2_512],
cipher: &[cipher::chacha20poly1305::NAME],
mac: &["none"],
compression: &["none", "zlib", "zlib@openssh.com"],
};
#[cfg(all(feature = "openssl", not(feature = "p256")))]
pub const DEFAULT_CLIENT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_C],
pub const COMPRESSED: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT],
key: &[
key::ED25519,
key::ECDSA_SHA2_NISTP256,
key::RSA_SHA2_256,
key::RSA_SHA2_512,
],
#[cfg(all(not(feature = "openssl"), not(feature = "p256")))]
pub const DEFAULT_CLIENT: Preferred = Preferred {
kex: &[kex::CURVE25519, kex::STRICT_C],
key: &[key::ED25519],
let client_supports_strict = Self::select(&[kex::STRICT], kex_string).is_some();
let server_supports_strict = Self::select(&[kex::STRICT], kex_string).is_some();
let client_supports_strict = Self::select(&[kex::STRICT_C], kex_string).is_some();
let server_supports_strict = Self::select(&[kex::STRICT_S], kex_string).is_some();
debug!("strict {:?} {:?}", client_supports_strict, server_supports_strict);