Initial support digest auth scheme

This commit is contained in:
Jorge Alejandro Jimenez Luna 2023-06-22 13:09:36 -04:00
parent 6767076a6b
commit 86429ee8eb
No known key found for this signature in database
GPG key ID: 58F10568E03E6001
6 changed files with 321 additions and 67 deletions

View file

@ -110,15 +110,15 @@ impl Options {
#[derive(Default, Clone, Debug)]
pub struct Credentials {
pub(crate) username: Vec<u8>,
pub(crate) password: Vec<u8>,
pub(crate) username: String,
pub(crate) password: String,
}
impl Credentials {
pub fn new(username: &str, password: &str) -> Self {
Self {
username: username.as_bytes().to_vec(),
password: password.as_bytes().to_vec(),
username: String::from(username),
password: String::from(password),
}
}
}