You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet, still TLS handshake will be performed in this function:
#[cfg(any( feature = "rustls", feature = "native-tls", feature = "vendored-openssl"))]asyncfntls_handshake(self,config:&Config,encryption:EncryptionLevel,) -> crate::Result<Self>{if encryption != EncryptionLevel::NotSupported{event!(Level::INFO, "Performing a TLS handshake");letSelf{
transport, context, ..
} = self;letmut stream = match transport.into_inner(){MaybeTlsStream::Raw(tcp) => {create_tls_stream(config,TlsPreloginWrapper::new(tcp)).await?
}
_ => unreachable!(),};
stream.get_mut().handshake_complete();event!(Level::INFO, "TLS handshake successful");let transport = Framed::new(MaybeTlsStream::Tls(stream),PacketCodec);Ok(Self{
transport,
context,flushed:false,buf:BytesMut::new(),})}else{event!(Level::WARN,
"TLS encryption is not enabled. All traffic including the login credentials are not encrypted.");Ok(self)}}
I'm not sure if this is right!? At least in my case it stalls and never returns from calling create_tls_stream() function on line 450 in tiberius::client::connection.
Here you can see the pre-login message stated encryption level is off:
The text was updated successfully, but these errors were encountered:
Using EncryptionLevel::Off will still need to do tls handshake, but only for that. If the server doesn't support tls, this will block. So to use EncryptionLevel::NotSupported might be better choice, it will fully disable tls including handshake.
TLSHandshake is awaited even though encryption is advertised as being off - EncryptionLevel::Off
Here is the code:
Yet, still TLS handshake will be performed in this function:
I'm not sure if this is right!? At least in my case it stalls and never returns from calling
create_tls_stream()
function on line 450 intiberius::client::connection
.Here you can see the pre-login message stated encryption level is off:
The text was updated successfully, but these errors were encountered: