diff --git a/parsers/src/starttls.rs b/parsers/src/starttls.rs index 92b156f2d1235856002a79af11b6f3382ba0bea5..1cc7eac78e3261f8c19b21cfe89089176d076877 100644 --- a/parsers/src/starttls.rs +++ b/parsers/src/starttls.rs @@ -18,6 +18,11 @@ pub struct Request; #[xml(namespace = ns::TLS, name = "proceed")] pub struct Proceed; +/// Information that the peer cannot do TLS after all. +#[derive(FromXml, AsXml, PartialEq, Debug, Clone)] +#[xml(namespace = ns::TLS, name = "failure")] +pub struct Failure; + /// Stream feature for StartTLS /// /// Used in [`crate::stream_features::StreamFeatures`]. @@ -40,6 +45,10 @@ pub enum Nonza { /// Information that TLS may now commence #[xml(transparent)] Proceed(Proceed), + + /// Information that the peer cannot do TLS after all. + #[xml(transparent)] + Failure(Failure), } #[cfg(test)]