Struct openssl::x509::X509VerifyResult
source · pub struct X509VerifyResult(/* private fields */);
Expand description
The result of peer certificate verification.
Implementations§
source§impl X509VerifyResult
impl X509VerifyResult
sourcepub unsafe fn from_raw(err: c_int) -> X509VerifyResult
pub unsafe fn from_raw(err: c_int) -> X509VerifyResult
Creates an X509VerifyResult
from a raw error number.
§Safety
Some methods on X509VerifyResult
are not thread safe if the error
number is invalid.
sourcepub fn error_string(&self) -> &'static str
pub fn error_string(&self) -> &'static str
Return a human readable error string from the verification error.
This corresponds to X509_verify_cert_error_string
.
sourcepub const OK: X509VerifyResult = _
pub const OK: X509VerifyResult = _
Successful peer certificate verification.
sourcepub const APPLICATION_VERIFICATION: X509VerifyResult = _
pub const APPLICATION_VERIFICATION: X509VerifyResult = _
Application verification failure.
Trait Implementations§
source§impl Clone for X509VerifyResult
impl Clone for X509VerifyResult
source§fn clone(&self) -> X509VerifyResult
fn clone(&self) -> X509VerifyResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for X509VerifyResult
impl Debug for X509VerifyResult
source§impl Display for X509VerifyResult
impl Display for X509VerifyResult
source§impl Error for X509VerifyResult
impl Error for X509VerifyResult
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for X509VerifyResult
impl PartialEq for X509VerifyResult
source§fn eq(&self, other: &X509VerifyResult) -> bool
fn eq(&self, other: &X509VerifyResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for X509VerifyResult
impl Eq for X509VerifyResult
impl StructuralPartialEq for X509VerifyResult
Auto Trait Implementations§
impl Freeze for X509VerifyResult
impl RefUnwindSafe for X509VerifyResult
impl Send for X509VerifyResult
impl Sync for X509VerifyResult
impl Unpin for X509VerifyResult
impl UnwindSafe for X509VerifyResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)