pub enum ResponseVerificationError {
Show 18 variants
IoError(Error),
UnsupportedVerificationVersion {
min_supported_version: u8,
max_supported_version: u8,
requested_version: u8,
},
RequestedVerificationVersionMismatch {
min_requested_verification_version: u8,
requested_version: u8,
},
CelError(CelParserError),
Base64DecodingError(DecodeError),
ParseIntError(ParseIntError),
InvalidTree,
InvalidExpressionPath,
InvalidResponseBody,
InvalidResponseHashes,
MissingCertificate,
MissingTree,
MissingCertificateExpressionPath,
MissingCertificateExpression,
MissingCertification,
CborDecodingFailed(CborError),
CertificateVerificationFailed(CertificateVerificationError),
HttpCertificationError(HttpCertificationError),
}
Expand description
The primary container for response verification errors
Variants§
IoError(Error)
Error converting UTF-8 string
UnsupportedVerificationVersion
Fields
An unsupported verification version was requested
RequestedVerificationVersionMismatch
Fields
Mismatch between the minimum requested version and the actual requested version
CelError(CelParserError)
Error parsing CEL expression
Base64DecodingError(DecodeError)
Error decoding base64
ParseIntError(ParseIntError)
Error parsing int
InvalidTree
The tree has different root hash from the expected value in the certified variables
InvalidExpressionPath
The CEL expression path is invalid
InvalidResponseBody
The response body was a mismatch from the expected values in the tree
InvalidResponseHashes
The response hashes were a mismatch from the expected values in the tree
MissingCertificate
The certificate was missing from the certification header
MissingTree
The tree was missing from the certification header
MissingCertificateExpressionPath
The certificate expression path was missing from the certification header
MissingCertificateExpression
The certificate expression was missing from the response headers
MissingCertification
The certification values could not be found in the response headers
CborDecodingFailed(CborError)
Failed to decode CBOR
CertificateVerificationFailed(CertificateVerificationError)
Failed to verify certificate
HttpCertificationError(HttpCertificationError)
HTTP Certification error