Struct openssl::ssl::SslContextRef [−]
pub struct SslContextRef(_);
Reference to SslContext
Methods
impl SslContextRef
[src]
impl SslContextRef
pub fn certificate(&self) -> Option<&X509Ref>
[src]
pub fn certificate(&self) -> Option<&X509Ref>
Returns the certificate associated with this SslContext
, if present.
Requires OpenSSL 1.0.2 or newer.
This corresponds to SSL_CTX_get0_certificate
.
pub fn private_key(&self) -> Option<&PKeyRef<Private>>
[src]
pub fn private_key(&self) -> Option<&PKeyRef<Private>>
Returns the private key associated with this SslContext
, if present.
Requires OpenSSL 1.0.2 or newer.
This corresponds to SSL_CTX_get0_privatekey
.
pub fn cert_store(&self) -> &X509StoreRef
[src]
pub fn cert_store(&self) -> &X509StoreRef
Returns a shared reference to the certificate store used for verification.
This corresponds to SSL_CTX_get_cert_store
.
pub fn extra_chain_certs(&self) -> &StackRef<X509>
[src]
pub fn extra_chain_certs(&self) -> &StackRef<X509>
Returns a shared reference to the stack of certificates making up the chain from the leaf.
This corresponds to SSL_CTX_get_extra_chain_certs
.
pub fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>
[src]
pub fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>
Returns a reference to the extra data at the specified index.
This corresponds to SSL_CTX_get_ex_data
.
pub fn max_early_data(&self) -> u32
[src]
pub fn max_early_data(&self) -> u32
Gets the maximum amount of early data that will be accepted on incoming connections.
Requires OpenSSL 1.1.1 or newer.
This corresponds to SSL_CTX_get_max_early_data
.
Trait Implementations
impl Borrow<SslContextRef> for SslContext
impl Borrow<SslContextRef> for SslContext
fn borrow(&self) -> &SslContextRef
fn borrow(&self) -> &SslContextRef
Immutably borrows from an owned value. Read more
impl AsRef<SslContextRef> for SslContext
impl AsRef<SslContextRef> for SslContext
fn as_ref(&self) -> &SslContextRef
fn as_ref(&self) -> &SslContextRef
Performs the conversion.
impl ForeignTypeRef for SslContextRef
impl ForeignTypeRef for SslContextRef
type CType = SSL_CTX
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
impl Send for SslContextRef
[src]
impl Send for SslContextRef
impl Sync for SslContextRef
[src]
impl Sync for SslContextRef