Struct openssl::x509::X509StoreContextRef
[−]
pub struct X509StoreContextRef(_);
Reference to X509StoreContext
.
Methods
impl X509StoreContextRef
[src]
fn ex_data<T>(&self, index: Index<X509StoreContext, T>) -> Option<&T>
[src]
Returns application data pertaining to an X509
store context.
This corresponds to X509_STORE_CTX_get_ex_data
.
fn error(&self) -> X509VerifyResult
[src]
Returns the error code of the context.
This corresponds to X509_STORE_CTX_get_error
.
fn set_error(&mut self, result: X509VerifyResult)
[src]
Set the error code of the context.
This corresponds to X509_STORE_CTX_set_error
.
fn current_cert(&self) -> Option<&X509Ref>
[src]
Returns a reference to the certificate which caused the error or None if no certificate is relevant to the error.
This corresponds to X509_STORE_CTX_get_current_cert
.
fn error_depth(&self) -> u32
[src]
Returns a non-negative integer representing the depth in the certificate chain where the error occurred. If it is zero it occurred in the end entity certificate, one if it is the certificate which signed the end entity certificate and so on.
This corresponds to X509_STORE_CTX_get_error_depth
.
fn chain(&self) -> Option<&StackRef<X509>>
[src]
Returns a reference to a complete valid X509
certificate chain.
This corresponds to X509_STORE_CTX_get0_chain
.
Trait Implementations
impl ForeignTypeRef for X509StoreContextRef
type CType = X509_STORE_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.