pub enum TlsServerAuth {
None,
Default,
TrustCertificate(Vec<u8>),
TrustCertificateAuthority(Vec<u8>),
}Variants§
None
Do not verify the identify of the server.
Default
Use only certificates provided in the default trust store.
TrustCertificate(Vec<u8>)
The PEM encoded bytes of a certificate to trurst directly, e.g. a self-signed certificate.
TODO: Add support for verifying certificates by their fingerprint.
TrustCertificateAuthority(Vec<u8>)
The PEM encoded bytes of the certificate of a Certificate Authority to add to the certificate trust store in order to be able to verify certificates issued by this authority, e.g. an in-house custom CA not present in the default trust store.
Trait Implementations§
Source§impl Clone for TlsServerAuth
impl Clone for TlsServerAuth
Source§impl Debug for TlsServerAuth
impl Debug for TlsServerAuth
Source§impl Default for TlsServerAuth
impl Default for TlsServerAuth
impl Eq for TlsServerAuth
Source§impl PartialEq for TlsServerAuth
impl PartialEq for TlsServerAuth
impl StructuralPartialEq for TlsServerAuth
Auto Trait Implementations§
impl Forget for TlsServerAuth
impl Freeze for TlsServerAuth
impl RefUnwindSafe for TlsServerAuth
impl Send for TlsServerAuth
impl Sync for TlsServerAuth
impl Unpin for TlsServerAuth
impl UnsafeUnpin for TlsServerAuth
impl UnwindSafe for TlsServerAuth
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