Struct openssl::x509::X509VerifyResult [−][src]
pub struct X509VerifyResult(_);
The result of peer certificate verification.
Methods
impl X509VerifyResult[src]
impl X509VerifyResultpub unsafe fn from_raw(err: c_int) -> X509VerifyResult[src]
pub unsafe fn from_raw(err: c_int) -> X509VerifyResultCreates an X509VerifyResult from a raw error number.
Safety
Some methods on X509VerifyResult are not thread safe if the error
number is invalid.
pub fn as_raw(&self) -> c_int[src]
pub fn as_raw(&self) -> c_intReturn the integer representation of an X509VerifyResult.
pub fn error_string(&self) -> &'static str[src]
pub fn error_string(&self) -> &'static strReturn a human readable error string from the verification error.
This corresponds to X509_verify_cert_error_string.
pub const OK: X509VerifyResult
OK: X509VerifyResult = X509VerifyResult(ffi::X509_V_OK)
Successful peer certifiate verification.
pub const APPLICATION_VERIFICATION: X509VerifyResult
APPLICATION_VERIFICATION: X509VerifyResult = X509VerifyResult(ffi::X509_V_ERR_APPLICATION_VERIFICATION)
Application verification failure.
Trait Implementations
impl Copy for X509VerifyResult[src]
impl Copy for X509VerifyResultimpl Clone for X509VerifyResult[src]
impl Clone for X509VerifyResultfn clone(&self) -> X509VerifyResult[src]
fn clone(&self) -> X509VerifyResultReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for X509VerifyResult[src]
impl PartialEq for X509VerifyResultfn eq(&self, other: &X509VerifyResult) -> bool[src]
fn eq(&self, other: &X509VerifyResult) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &X509VerifyResult) -> bool[src]
fn ne(&self, other: &X509VerifyResult) -> boolThis method tests for !=.
impl Eq for X509VerifyResult[src]
impl Eq for X509VerifyResultimpl Debug for X509VerifyResult[src]
impl Debug for X509VerifyResultfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for X509VerifyResult[src]
impl Display for X509VerifyResultfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for X509VerifyResult[src]
impl Error for X509VerifyResultAuto Trait Implementations
impl Send for X509VerifyResult
impl Send for X509VerifyResultimpl Sync for X509VerifyResult
impl Sync for X509VerifyResult