some work towards channel binding support (SCRAM-SHA-{1,256}-PLUS)
This commit is contained in:
parent
cdccd6be3f
commit
c09e8ac06e
5 changed files with 82 additions and 68 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue