Struct openssl::ssl::SslContextRef
[−]
pub struct SslContextRef(_);
Methods
impl SslContextRef
[src]
fn certificate(&self) -> Option<&X509Ref>
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.
fn private_key(&self) -> Option<&PKeyRef>
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.
fn cert_store(&self) -> &X509StoreRef
Returns the certificate store used for verification.
fn extra_chain_certs(&self) -> &StackRef<X509>
fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T>
Returns a reference to the extra data at the specified index.
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
Constructs a shared instance of this type from its raw type.
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
Returns a raw pointer to the wrapped value.