[−][src]Struct mesalink::libssl::ssl::MESALINK_CTX
A global context structure which is created by a server or a client once per
program. It holds default values for SSL
objects which are later created
for individual connections.
Pass a valid SSL_METHOD
object to SSL_CTX_new
to create a SSL_CTX
object. Note that only TLS 1.2 and 1.3 (draft 18) are supported.
For a context to be used in a TLS server, call
SSL_CTX_use_certificate_chain_file
and SSL_CTX_use_PrivateKey_file
to
set the certificates and private key. Otherwise, SSL_accept
would fail and
return an error code NoCertificatesPresented
. If the context is created
for a TLS client, no further action is needed as MesaLink has built-in root
CA certificates and default ciphersuites. Support for configurable
ciphersuites will be added soon in the next release.
Trait Implementations
impl Clone for MESALINK_CTX
[src]
fn clone(&self) -> MESALINK_CTX
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Sync for MESALINK_CTX
impl Send for MESALINK_CTX
impl Unpin for MESALINK_CTX
impl !RefUnwindSafe for MESALINK_CTX
impl !UnwindSafe for MESALINK_CTX
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,