Struct openssl::ssl::SslContextRef
[−]
pub struct SslContextRef(_);
Reference to SslContext
Methods
impl SslContextRef
[src]
fn certificate(&self) -> Option<&X509Ref>
[src]
Returns the certificate associated with this SslContext
, if present.
Requires the v102
or v110
features and OpenSSL 1.0.2 or OpenSSL 1.1.0.
This corresponds to SSL_CTX_get0_certificate
.
fn private_key(&self) -> Option<&PKeyRef>
[src]
Returns the private key associated with this SslContext
, if present.
Requires the v102
or v110
features and OpenSSL 1.0.2 or OpenSSL 1.1.0.
This corresponds to SSL_CTX_get0_privatekey
.
fn cert_store(&self) -> &X509StoreRef
[src]
Returns a shared reference to the certificate store used for verification.
This corresponds to SSL_CTX_get_cert_store
.
fn extra_chain_certs(&self) -> &StackRef<X509>
[src]
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
.
fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>
[src]
Returns a reference to the extra data at the specified index.
This corresponds to SSL_CTX_get_ex_data
.
Trait Implementations
impl ForeignTypeRef for SslContextRef
type CType = SSL_CTX
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
Returns a raw pointer to the wrapped value.