Expand description
Password protocol extension.
Passwords are sent in plain text!!
§Example
Server:
let mut passwords = HashMap::new();
passwords.insert("user1".to_string(), "pw".to_string());
let (mux, fut) = ServerMux::new(
rx,
tx,
128,
Some(&[Box::new(PasswordProtocolExtensionBuilder::new_server(passwords))])
);Client:
let (mux, fut) = ClientMux::new(
rx,
tx,
128,
Some(&[
Box::new(PasswordProtocolExtensionBuilder::new_client(
"user1".to_string(),
"pw".to_string()
))
])
);See the docs
Structs§
- Password
Protocol Extension - Password protocol extension.
- Password
Protocol Extension Builder - Password protocol extension builder.