12 static std::pair<http_status, std::string> quote_verification_error(
18 throw std::invalid_argument(
19 "quote_verification_error should not be called with Verified result");
21 return std::make_pair(
22 HTTP_STATUS_UNAUTHORIZED,
"Quote could not be verified");
24 return std::make_pair(
25 HTTP_STATUS_UNAUTHORIZED,
26 "Quote does not contain known enclave measurement");
28 return std::make_pair(
29 HTTP_STATUS_UNAUTHORIZED,
30 "Quote report data does not match the hash of the public key for "
33 return std::make_pair(
34 HTTP_STATUS_UNAUTHORIZED,
"Quote does not contain trusted host data");
36 return std::make_pair(
37 HTTP_STATUS_UNAUTHORIZED,
"Quote host data is not authorised");
39 return std::make_pair(
40 HTTP_STATUS_UNAUTHORIZED,
"UVM endorsements are not authorised");
42 return std::make_pair(
43 HTTP_STATUS_UNAUTHORIZED,
"Quote CPUID is unknown");
45 return std::make_pair(
46 HTTP_STATUS_UNAUTHORIZED,
"Quote TCB version is too low");
48 throw std::logic_error(fmt::format(
49 "Unknown QuoteVerificationResult: {}",
50 static_cast<uint32_t
>(result)));
Definition app_interface.h:13
QuoteVerificationResult
Definition quote.h:19
@ FailedInvalidQuotedPublicKey
@ FailedUVMEndorsementsNotFound
@ FailedMeasurementNotFound
@ FailedHostDataDigestNotFound
@ FailedInvalidTcbVersion