Skip to content

Commit 92f79c8

Browse files
cjen1-msftachamayouCopilot
authored
Add missing cases for QuoteVerificationResult (#7696)
Co-authored-by: Amaury Chamayou <amaury@xargs.fr> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8865a02 commit 92f79c8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/node/rpc/node_frontend_utils.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ namespace ccf
3030
case QuoteVerificationResult::FailedInvalidHostData:
3131
return std::make_pair(
3232
HTTP_STATUS_UNAUTHORIZED, "Quote host data is not authorised");
33-
case ccf::QuoteVerificationResult::FailedUVMEndorsementsNotFound:
33+
case QuoteVerificationResult::FailedUVMEndorsementsNotFound:
3434
return std::make_pair(
3535
HTTP_STATUS_UNAUTHORIZED, "UVM endorsements are not authorised");
36+
case QuoteVerificationResult::FailedInvalidCPUID:
37+
return std::make_pair(
38+
HTTP_STATUS_UNAUTHORIZED, "Quote CPUID is unknown");
39+
case QuoteVerificationResult::FailedInvalidTcbVersion:
40+
return std::make_pair(
41+
HTTP_STATUS_UNAUTHORIZED, "Quote TCB version is too low");
3642
default:
3743
return std::make_pair(
3844
HTTP_STATUS_INTERNAL_SERVER_ERROR,

0 commit comments

Comments
 (0)