From 866007621aa15238ee0c2b0b1afad7193412c05e Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 2 Aug 2018 18:16:14 +0200 Subject: [PATCH] sasl: add Failure nonza --- src/sasl.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sasl.rs b/src/sasl.rs index 91353560..67dac685 100644 --- a/src/sasl.rs +++ b/src/sasl.rs @@ -4,7 +4,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -use helpers::Base64; +use helpers::{Base64, TrimmedPlainText}; generate_attribute!(Mechanism, "mechanism", { Plain => "PLAIN", @@ -32,6 +32,10 @@ generate_element_with_text!(Success, "success", SASL, data: Base64> ); +generate_element_with_text!(Failure, "failure", SASL, + data: TrimmedPlainText +); + #[cfg(test)] mod tests { use super::*;