Skip to content

Commit

Permalink
Update TdVtpmReportStatus consistent with spec
Browse files Browse the repository at this point in the history
Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
  • Loading branch information
sunceping committed Sep 20, 2023
1 parent d45c401 commit a92c965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/protocol/src/report_status/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ pub enum TdVtpmReportStatus {
NetworkError = 5,
SecureSessionError = 6,
MutualAttestationError = 7,
MigPolicyError = 8,
InvalidOperation = 9,
UserTdAlreadyExist = 10,
UserTdNotFound = 11,
ExceedMaxConnection = 12,
ExceedMaxTpmInstance = 13,
InternalError = 0xff,
VtpmMigPolicyError = 8,
VtpmInstanceAlreadyStarted = 9,
VtpmInstanceNotStarted = 0xA,
VtpmTdInternalError = 0xff,
}
4 changes: 2 additions & 2 deletions src/vtpmtd/src/vtpm/spdm_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub extern "C" fn start_spdm_server() {
&[],
vtpm_id,
rsp_packet.operation(),
TdVtpmReportStatus::InvalidOperation as u8,
TdVtpmReportStatus::InvalidParameter as u8,
);
continue;
}
Expand All @@ -102,7 +102,7 @@ pub extern "C" fn start_spdm_server() {
&[],
vtpm_id,
operation as u8,
TdVtpmReportStatus::InvalidOperation as u8,
TdVtpmReportStatus::VtpmInstanceNotStarted as u8,
);
continue;
}
Expand Down

0 comments on commit a92c965

Please sign in to comment.