initial work towards server-side support

This commit is contained in:
lumi 2017-03-16 20:04:22 +01:00
commit 4b9f2376af
10 changed files with 759 additions and 260 deletions

View file

@ -0,0 +1,13 @@
use server::Mechanism;
use common::{Secret, Credentials, Password};
pub struct Plain {
password: String,
}
impl<V: Validator> Mechanism<V> for Plain {
fn name(&self) -> &str { "PLAIN" }
fn from_initial_message(validator: &V, msg: &[u8]) -> Result<(Self, String), String> {
}
}