Struct mesalink::libssl::ssl::MESALINK_CTX [−][src]
pub struct MESALINK_CTX { /* fields omitted */ }
Expand description
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
Auto Trait Implementations
impl !RefUnwindSafe for MESALINK_CTX
impl Send for MESALINK_CTX
impl Sync for MESALINK_CTX
impl Unpin for MESALINK_CTX
impl !UnwindSafe for MESALINK_CTX
Blanket Implementations
Mutably borrows from an owned value. Read more