#[repr(C)]pub struct C4TLSConfig {
pub privateKeyRepresentation: C4PrivateKeyRepresentation,
pub key: *mut C4KeyPair,
pub certificate: *mut C4Cert,
pub requireClientCerts: bool,
pub rootClientCerts: *mut C4Cert,
pub certAuthCallback: C4ListenerCertAuthCallback,
pub tlsCallbackContext: *mut c_void,
}Expand description
TLS configuration for C4Listener.
Fields§
§privateKeyRepresentation: C4PrivateKeyRepresentation< Interpretation of privateKey
key: *mut C4KeyPair< A key pair that contains the private key
certificate: *mut C4Cert< X.509 certificate data
requireClientCerts: bool< True to require clients to authenticate with a cert
rootClientCerts: *mut C4Cert< Root CA certs to trust when verifying client cert
certAuthCallback: C4ListenerCertAuthCallback< Callback for X.509 cert auth
tlsCallbackContext: *mut c_voidTrait Implementations§
Source§impl Clone for C4TLSConfig
impl Clone for C4TLSConfig
Source§fn clone(&self) -> C4TLSConfig
fn clone(&self) -> C4TLSConfig
Returns a duplicate 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 C4TLSConfig
impl Debug for C4TLSConfig
impl Copy for C4TLSConfig
Auto Trait Implementations§
impl Freeze for C4TLSConfig
impl RefUnwindSafe for C4TLSConfig
impl !Send for C4TLSConfig
impl !Sync for C4TLSConfig
impl Unpin for C4TLSConfig
impl UnwindSafe for C4TLSConfig
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