跳到主要内容

CertRevocationListError

枚举 CertRevocationListError 

Source
#[non_exhaustive]
pub enum CertRevocationListError {
Show 14 variants BadSignature, UnsupportedSignatureAlgorithm, UnsupportedSignatureAlgorithmContext { signature_algorithm_id: Vec<u8>, supported_algorithms: Vec<AlgorithmIdentifier>, }, UnsupportedSignatureAlgorithmForPublicKeyContext { signature_algorithm_id: Vec<u8>, public_key_algorithm_id: Vec<u8>, }, InvalidCrlNumber, InvalidRevokedCertSerialNumber, IssuerInvalidForCrl, Other(OtherError), ParseError, UnsupportedCrlVersion, UnsupportedCriticalExtension, UnsupportedDeltaCrl, UnsupportedIndirectCrl, UnsupportedRevocationReason,
}
展开描述

证书吊销列表 (CRL) 可能无效的方式。

变体 (Non-exhaustive)§

This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
§

BadSignature

此 CRL had 一个 bad 签名从 its issuer.

§

UnsupportedSignatureAlgorithm

👎Deprecated since 0.23.29: use UnsupportedSignatureAlgorithmContext instead

此 CRL had an unsupported 签名从 its issuer.

§

UnsupportedSignatureAlgorithmContext

A signature inside 一个 certificate 或 on 一个 handshake was made with an unsupported 算法.

字段

§signature_algorithm_id: Vec<u8>

此 签名算法 OID that was unsupported.

§supported_algorithms: Vec<AlgorithmIdentifier>

Supported algorithms that were available 用于 signature verification.

§

UnsupportedSignatureAlgorithmForPublicKeyContext

A signature was made with an 算法 that doesn’t match the relevant 公钥.

字段

§signature_algorithm_id: Vec<u8>

此 签名算法 OID.

§public_key_algorithm_id: Vec<u8>

此 公钥 算法 OID.

§

InvalidCrlNumber

此 CRL contained an invalid CRL number.

§

InvalidRevokedCertSerialNumber

此 CRL contained 一个 revoked certificate with an invalid serial number.

§

IssuerInvalidForCrl

此 CRL issuer does not specify the cRLSign key usage.

§

Other(OtherError)

此 CRL is invalid 用于 some other reason.

Enums holding this variant will never compare equal 到 each other.

§

ParseError

此 CRL is not correctly encoded.

§

UnsupportedCrlVersion

此 CRL is not 一个 v2 X.509 CRL.

§

UnsupportedCriticalExtension

此 CRL, 或 一个 revoked certificate in the CRL, contained an unsupported critical extension.

§

UnsupportedDeltaCrl

此 CRL 是 unsupported delta CRL, containing only changes relative 到 another CRL.

§

UnsupportedIndirectCrl

此 CRL 是 unsupported indirect CRL, containing revoked certificates issued by 一个 CA other than the issuer of the CRL.

§

UnsupportedRevocationReason

此 CRL contained 一个 revoked certificate with an unsupported revocation reason. See RFC 5280 Section 5.3.11 用于 一个 list of supported revocation reasons.

Trait 实现§

Source§

impl Clone for CertRevocationListError

Source§

fn clone(&self) -> CertRevocationListError

返回值的副本。 更多信息
1.0.0 · Source§

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

Performs copy-assignment 从 source. 更多信息
Source§

impl Debug for CertRevocationListError

Source§

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

使用给定的格式化器格式化此值。 更多信息
Source§

impl From<CertRevocationListError> for Error

Source§

fn from(e: CertRevocationListError) -> Self

从输入类型转换为此类型。
Source§

impl From<CertRevocationListError> for VerifierBuilderError

Source§

fn from(value: CertRevocationListError) -> Self

从输入类型转换为此类型。
Source§

impl PartialEq for CertRevocationListError

Source§

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

测试 selfother 值是否相等,供 == 运算符使用。
1.0.0 · Source§

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

测试 != 运算符。默认实现几乎总是够用,除非有非常充分的理由,否则不应被覆盖。

自动 Trait 实现§

Blanket 实现§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. 更多信息
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows 从 an owned value. 更多信息
Source§

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

Source§

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

Mutably borrows 从 an owned value. 更多信息
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment 从 selfdest. 更多信息
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

原样返回传入的参数。

Source§

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

Source§

fn into(self) -> U

Calls U::从(self)

That is, this conversion is whatever the implementation of From<T> 用于 U 的实现方式。

Source§

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

Source§

type Owned = T

获得所有权后的类型。
Source§

fn to_owned(&self) -> T

Creates owned data 从 borrowed data, usually by cloning. 更多信息
Source§

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

Uses borrowed data 到 replace owned data, usually by cloning. 更多信息
Source§

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

Source§

type Error = Infallible

转换出错时返回的类型。
Source§

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

执行转换。
Source§

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

Source§

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

转换出错时返回的类型。
Source§

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

执行转换。