File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ impl MssqlConnection {
1818 // TODO: Encryption
1919 // TODO: Send the version of SQLx over
2020
21- log:: debug!( "Sending T-SQL PRELOGIN with encryption: {:?}" , options. encrypt) ;
21+ log:: debug!(
22+ "Sending T-SQL PRELOGIN with encryption: {:?}" ,
23+ options. encrypt
24+ ) ;
2225
2326 stream
2427 . write_packet_and_flush (
Original file line number Diff line number Diff line change @@ -245,7 +245,11 @@ impl MssqlStream {
245245 pub ( crate ) async fn setup_encryption ( & mut self ) -> Result < ( ) , Error > {
246246 let tls_config = TlsConfig {
247247 accept_invalid_certs : self . options . trust_server_certificate ,
248- hostname : self . options . hostname_in_certificate . as_deref ( ) . unwrap_or ( & self . options . host ) ,
248+ hostname : self
249+ . options
250+ . hostname_in_certificate
251+ . as_deref ( )
252+ . unwrap_or ( & self . options . host ) ,
249253 accept_invalid_hostnames : self . options . hostname_in_certificate . is_none ( ) ,
250254 root_cert_path : self . options . ssl_root_cert . as_ref ( ) ,
251255 client_cert_path : None ,
Original file line number Diff line number Diff line change 11use std:: path:: Path ;
22
3- use crate :: { connection:: LogSettings , net:: CertificateInput } ;
43use super :: protocol:: pre_login:: Encrypt ;
4+ use crate :: { connection:: LogSettings , net:: CertificateInput } ;
55
66mod connect;
77mod parse;
You can’t perform that action at this time.
0 commit comments