Enum picky::x509::pkcs7::authenticode::AuthenticodeError
source · pub enum AuthenticodeError {
Show 27 variants
Asn1DerError(Asn1DerError),
CAIsNotTrusted,
CaCertificateRevoked,
CaCertificateExpired {
not_after: UtcDate,
now: UtcDate,
},
CaCertificateNotYetValid {
not_before: UtcDate,
now: UtcDate,
},
CertError(CertError),
DigestAlgorithmMismatch {
description: String,
},
HashMismatch,
FileHashMismatch {
actual: Vec<u8>,
expected: Vec<u8>,
},
IncorrectDigestAlgorithmsCount {
incorrect_count: usize,
},
IncorrectSignerIdentifier,
IncorrectVersion {
expected: u32,
got: u32,
},
MultipleSignerInfo {
count: usize,
},
NoEncapsulatedContentInfo,
NoSpcIndirectDataContent,
NoCertificates,
NoIntermediateCertificate,
NoEKUCodeSigning,
NoMessageDigest,
NoCertificatesAssociatedWithIssuerAndSerialNumber {
issuer: Name,
serial_number: Vec<u8>,
},
InvalidTimestampCert(CertError),
SignatureError(SignatureError),
ProgramNameCharSet(CharSetError),
UnsupportedHashAlgorithmError(UnsupportedHashAlgorithmError),
UnsupportedAlgorithmError(UnsupportedAlgorithmError),
CtlError(CtlError),
TimestampError(TimestampError),
}Variants§
Asn1DerError(Asn1DerError)
CAIsNotTrusted
CaCertificateRevoked
CaCertificateExpired
CaCertificateNotYetValid
CertError(CertError)
DigestAlgorithmMismatch
HashMismatch
FileHashMismatch
IncorrectDigestAlgorithmsCount
IncorrectSignerIdentifier
IncorrectVersion
MultipleSignerInfo
NoEncapsulatedContentInfo
NoSpcIndirectDataContent
NoCertificates
NoIntermediateCertificate
NoEKUCodeSigning
NoMessageDigest
NoCertificatesAssociatedWithIssuerAndSerialNumber
InvalidTimestampCert(CertError)
SignatureError(SignatureError)
ProgramNameCharSet(CharSetError)
UnsupportedHashAlgorithmError(UnsupportedHashAlgorithmError)
UnsupportedAlgorithmError(UnsupportedAlgorithmError)
CtlError(CtlError)
TimestampError(TimestampError)
Trait Implementations§
source§impl Debug for AuthenticodeError
impl Debug for AuthenticodeError
source§impl Display for AuthenticodeError
impl Display for AuthenticodeError
source§impl Error for AuthenticodeError
impl Error for AuthenticodeError
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 From<Asn1DerError> for AuthenticodeError
impl From<Asn1DerError> for AuthenticodeError
source§fn from(source: Asn1DerError) -> Self
fn from(source: Asn1DerError) -> Self
Converts to this type from the input type.
source§impl From<AuthenticodeError> for AuthenticodeSignatureBuilderError
impl From<AuthenticodeError> for AuthenticodeSignatureBuilderError
source§fn from(source: AuthenticodeError) -> Self
fn from(source: AuthenticodeError) -> Self
Converts to this type from the input type.
source§impl From<CertError> for AuthenticodeError
impl From<CertError> for AuthenticodeError
source§impl From<CharSetError> for AuthenticodeError
impl From<CharSetError> for AuthenticodeError
source§fn from(source: CharSetError) -> Self
fn from(source: CharSetError) -> Self
Converts to this type from the input type.
source§impl From<CtlError> for AuthenticodeError
impl From<CtlError> for AuthenticodeError
source§impl From<SignatureError> for AuthenticodeError
impl From<SignatureError> for AuthenticodeError
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthenticodeError
impl Send for AuthenticodeError
impl Sync for AuthenticodeError
impl Unpin for AuthenticodeError
impl !UnwindSafe for AuthenticodeError
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