Struct boring::x509::X509VerifyError

source ·
pub struct X509VerifyError(/* private fields */);

Implementations§

source§

impl X509VerifyError

source

pub unsafe fn from_raw(err: c_int) -> X509VerifyResult

Creates an X509VerifyResult from a raw error number.

§Safety

Some methods on X509VerifyError are not thread safe if the error number is invalid.

source

pub fn as_raw(&self) -> c_int

Return the integer representation of an X509VerifyError.

source

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.

source§

impl X509VerifyError

source

pub const UNSPECIFIED: Self = _

source

pub const UNABLE_TO_GET_ISSUER_CERT: Self = _

source

pub const UNABLE_TO_GET_CRL: Self = _

source

pub const UNABLE_TO_DECRYPT_CERT_SIGNATURE: Self = _

source

pub const UNABLE_TO_DECRYPT_CRL_SIGNATURE: Self = _

source

pub const UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: Self = _

source

pub const CERT_SIGNATURE_FAILURE: Self = _

source

pub const CRL_SIGNATURE_FAILURE: Self = _

source

pub const CERT_NOT_YET_VALID: Self = _

source

pub const CERT_HAS_EXPIRED: Self = _

source

pub const CRL_NOT_YET_VALID: Self = _

source

pub const CRL_HAS_EXPIRED: Self = _

source

pub const ERROR_IN_CERT_NOT_BEFORE_FIELD: Self = _

source

pub const ERROR_IN_CERT_NOT_AFTER_FIELD: Self = _

source

pub const ERROR_IN_CRL_LAST_UPDATE_FIELD: Self = _

source

pub const ERROR_IN_CRL_NEXT_UPDATE_FIELD: Self = _

source

pub const OUT_OF_MEM: Self = _

source

pub const DEPTH_ZERO_SELF_SIGNED_CERT: Self = _

source

pub const SELF_SIGNED_CERT_IN_CHAIN: Self = _

source

pub const UNABLE_TO_GET_ISSUER_CERT_LOCALLY: Self = _

source

pub const UNABLE_TO_VERIFY_LEAF_SIGNATURE: Self = _

source

pub const CERT_CHAIN_TOO_LONG: Self = _

source

pub const CERT_REVOKED: Self = _

source

pub const INVALID_CA: Self = _

source

pub const PATH_LENGTH_EXCEEDED: Self = _

source

pub const INVALID_PURPOSE: Self = _

source

pub const CERT_UNTRUSTED: Self = _

source

pub const CERT_REJECTED: Self = _

source

pub const SUBJECT_ISSUER_MISMATCH: Self = _

source

pub const AKID_SKID_MISMATCH: Self = _

source

pub const AKID_ISSUER_SERIAL_MISMATCH: Self = _

source

pub const KEYUSAGE_NO_CERTSIGN: Self = _

source

pub const UNABLE_TO_GET_CRL_ISSUER: Self = _

source

pub const UNHANDLED_CRITICAL_EXTENSION: Self = _

source

pub const KEYUSAGE_NO_CRL_SIGN: Self = _

source

pub const UNHANDLED_CRITICAL_CRL_EXTENSION: Self = _

source

pub const INVALID_NON_CA: Self = _

source

pub const PROXY_PATH_LENGTH_EXCEEDED: Self = _

source

pub const KEYUSAGE_NO_DIGITAL_SIGNATURE: Self = _

source

pub const PROXY_CERTIFICATES_NOT_ALLOWED: Self = _

source

pub const INVALID_EXTENSION: Self = _

source

pub const INVALID_POLICY_EXTENSION: Self = _

source

pub const NO_EXPLICIT_POLICY: Self = _

source

pub const DIFFERENT_CRL_SCOPE: Self = _

source

pub const UNSUPPORTED_EXTENSION_FEATURE: Self = _

source

pub const UNNESTED_RESOURCE: Self = _

source

pub const PERMITTED_VIOLATION: Self = _

source

pub const EXCLUDED_VIOLATION: Self = _

source

pub const SUBTREE_MINMAX: Self = _

source

pub const APPLICATION_VERIFICATION: Self = _

source

pub const UNSUPPORTED_CONSTRAINT_TYPE: Self = _

source

pub const UNSUPPORTED_CONSTRAINT_SYNTAX: Self = _

source

pub const UNSUPPORTED_NAME_SYNTAX: Self = _

source

pub const CRL_PATH_VALIDATION_ERROR: Self = _

source

pub const HOSTNAME_MISMATCH: Self = _

source

pub const EMAIL_MISMATCH: Self = _

source

pub const IP_ADDRESS_MISMATCH: Self = _

source

pub const INVALID_CALL: Self = _

source

pub const STORE_LOOKUP: Self = _

source

pub const NAME_CONSTRAINTS_WITHOUT_SANS: Self = _

Trait Implementations§

source§

impl Clone for X509VerifyError

source§

fn clone(&self) -> X509VerifyError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for X509VerifyError

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for X509VerifyError

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for X509VerifyError

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for X509VerifyError

source§

fn eq(&self, other: &X509VerifyError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for X509VerifyError

source§

impl Eq for X509VerifyError

source§

impl StructuralPartialEq for X509VerifyError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.