some work towards channel binding support (SCRAM-SHA-{1,256}-PLUS)

This commit is contained in:
lumi 2017-02-25 03:43:11 +01:00
commit c09e8ac06e
5 changed files with 82 additions and 68 deletions

View file

@ -133,7 +133,7 @@ impl Client {
let auth = mechanism.initial().map_err(|x| Error::SaslError(Some(x)))?;
let mut elem = Element::builder("auth")
.ns(ns::SASL)
.attr("mechanism", S::name())
.attr("mechanism", mechanism.name())
.build();
if !auth.is_empty() {
elem.append_text_node(base64::encode(&auth));