@@ -195,7 +195,6 @@ pub struct Config {
195
195
pub ( crate ) target_session_attrs : TargetSessionAttrs ,
196
196
pub ( crate ) channel_binding : ChannelBinding ,
197
197
pub ( crate ) replication_mode : Option < ReplicationMode > ,
198
- pub ( crate ) tls_verify_host : Option < String > ,
199
198
}
200
199
201
200
impl Default for Config {
@@ -231,7 +230,6 @@ impl Config {
231
230
target_session_attrs : TargetSessionAttrs :: Any ,
232
231
channel_binding : ChannelBinding :: Prefer ,
233
232
replication_mode : None ,
234
- tls_verify_host : None ,
235
233
}
236
234
}
237
235
@@ -375,24 +373,12 @@ impl Config {
375
373
& self . host
376
374
}
377
375
378
- /// Gets a mutable view of the hosts that have been added to the configuration with `host`.
376
+ /// Gets a mutable view of the hosts that have been added to the
377
+ /// configuration with `host`.
379
378
pub fn get_hosts_mut ( & mut self ) -> & mut [ Host ] {
380
379
& mut self . host
381
380
}
382
381
383
- /// Sets the hostname used during TLS certificate verification, if enabled.
384
- ///
385
- /// This can be useful if you are connecting through an SSH tunnel.
386
- pub fn tls_verify_host ( & mut self , host : & str ) -> & mut Config {
387
- self . tls_verify_host = Some ( host. to_string ( ) ) ;
388
- self
389
- }
390
-
391
- /// Gets the host that has been added to the configuration with `tls_verify_host`.
392
- pub fn get_tls_verify_host ( & self ) -> Option < & str > {
393
- self . tls_verify_host . as_deref ( )
394
- }
395
-
396
382
/// Adds a Unix socket host to the configuration.
397
383
///
398
384
/// Unlike `host`, this method allows non-UTF8 paths.
0 commit comments