pub struct TlsOptions {
pub trust_server_certificate: bool,
}Expand description
How the certificate the server presents is checked.
Fields§
§trust_server_certificate: boolAccept whatever certificate the server presents.
On by default, and that is a deliberate, documented compromise: SQL
Server generates a self-signed certificate at startup unless an
administrator installs one, so verification would fail against every
stock installation. Encryption still protects against passive
eavesdropping; it does not protect against an active attacker until this
is turned off. Every SQL Server driver makes the same trade under the
name TrustServerCertificate.
Trait Implementations§
Source§impl Clone for TlsOptions
impl Clone for TlsOptions
Source§fn clone(&self) -> TlsOptions
fn clone(&self) -> TlsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TlsOptions
Source§impl Debug for TlsOptions
impl Debug for TlsOptions
Auto Trait Implementations§
impl Freeze for TlsOptions
impl RefUnwindSafe for TlsOptions
impl Send for TlsOptions
impl Sync for TlsOptions
impl Unpin for TlsOptions
impl UnsafeUnpin for TlsOptions
impl UnwindSafe for TlsOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more