pub enum TlsServerCertVerify {
Insecure,
IgnoreHostname,
VerifyFull,
}Expand description
Verification modes for TLS that are a superset of both PostgreSQL and EdgeDB/Gel.
Postgres offers six levels: disable, allow, prefer, require, verify-ca and verify-full.
EdgeDB/Gel offers three levels: insecure, `no_host_verification’ and ‘strict’.
This table maps the various levels:
| Postgres | EdgeDB/Gel | TlsServerCertVerify enum |
|---|---|---|
| require | insecure | Insecure |
| verify-ca | no_host_verification | IgnoreHostname |
| verify-full | strict | VerifyFull |
Note that both EdgeDB/Gel and Postgres may alter certificate validation levels
when custom root certificates are provided. This must be done in the
TlsParameters struct by the caller.
Variants§
Insecure
Do not verify the server’s certificate. Only confirm that the server is using TLS.
IgnoreHostname
Verify the server’s certificate using the CA (ignore hostname).
VerifyFull
Verify the server’s certificate using the CA and hostname.
Trait Implementations§
Source§impl Clone for TlsServerCertVerify
impl Clone for TlsServerCertVerify
Source§fn clone(&self) -> TlsServerCertVerify
fn clone(&self) -> TlsServerCertVerify
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlsServerCertVerify
impl Debug for TlsServerCertVerify
Source§impl Default for TlsServerCertVerify
impl Default for TlsServerCertVerify
Source§fn default() -> TlsServerCertVerify
fn default() -> TlsServerCertVerify
Returns the “default value” for a type. Read more
Source§impl PartialEq for TlsServerCertVerify
impl PartialEq for TlsServerCertVerify
impl Copy for TlsServerCertVerify
impl Eq for TlsServerCertVerify
impl StructuralPartialEq for TlsServerCertVerify
Auto Trait Implementations§
impl Freeze for TlsServerCertVerify
impl RefUnwindSafe for TlsServerCertVerify
impl Send for TlsServerCertVerify
impl Sync for TlsServerCertVerify
impl Unpin for TlsServerCertVerify
impl UnwindSafe for TlsServerCertVerify
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