Add disabled-by-default insecure-tcp feature to tokio-xmpp for use by component connections

This commit is contained in:
moparisthebest 2024-01-01 01:13:51 -05:00
commit 019450ff4b
No known key found for this signature in database
GPG key ID: 88C93BFE27BC8229
9 changed files with 112 additions and 12 deletions

View file

@ -1,3 +1,5 @@
//! StartTLS ServerConnector Error
use hickory_resolver::{error::ResolveError, proto::error::ProtoError};
#[cfg(feature = "tls-native")]
use native_tls::Error as TlsError;
@ -9,7 +11,7 @@ use tokio_rustls::rustls::client::InvalidDnsNameError;
#[cfg(all(feature = "tls-rust", not(feature = "tls-native")))]
use tokio_rustls::rustls::Error as TlsError;
/// Top-level error type
/// StartTLS ServerConnector Error
#[derive(Debug)]
pub enum Error {
/// Error resolving DNS and establishing a connection