pub enum AuthMode {
None,
Optional,
Required,
Unset,
}Expand description
Certificate verification mode used for a session
Variants§
None
Peer certificate is not checked (default on server) (insecure on client)
Optional
Peer certificate is checked, however the handshake continues even if verification failed; mbedtls_ssl_get_verify_result() can be called after the handshake is complete.
Required
Peer must present a valid certificate, handshake is aborted if verification failed. (default on client)
Unset
Used only for sni_authmode
Trait Implementations§
impl Copy for AuthMode
impl Eq for AuthMode
impl StructuralPartialEq for AuthMode
Auto Trait Implementations§
impl Freeze for AuthMode
impl RefUnwindSafe for AuthMode
impl Send for AuthMode
impl Sync for AuthMode
impl Unpin for AuthMode
impl UnsafeUnpin for AuthMode
impl UnwindSafe for AuthMode
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