pub struct Preferred {
/// Preferred key exchange algorithms.
pub kex: &'static [kex::Name],
/// Preferred public key algorithms.
pub key: &'static [key::Name],
/// Preferred symmetric ciphers.
pub cipher: &'static [cipher::Name],
/// Preferred MAC algorithms.
pub mac: &'static [&'static str],
/// Preferred compression algorithms.
pub compression: &'static [&'static str],
}
Is it possible to make kex::Name
pub and let users customize kex.
Could not find common kex algorithm, other side only supports Ok("diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au"), we only support [Name("curve25519-sha256@libssh.org")]
How does this need to be resolved?