mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00
feat: use real RA-TLS for everything
* add `tee-ratls-preexec` for creating the vault certificate * remove the old attestation API Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
020159b9d7
commit
0b60abc030
21 changed files with 837 additions and 834 deletions
|
@ -1,4 +1,5 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright (c) 2024 Matter Labs
|
||||
|
||||
mod sgx {
|
||||
use anyhow::Result;
|
||||
|
@ -23,7 +24,7 @@ mod sgx {
|
|||
tcb_level_date_tag,
|
||||
} = verify_quote_with_collateral(quote, Some(collateral), current_time).unwrap();
|
||||
|
||||
if collateral_expired || !matches!(result, sgx_ql_qv_result_t::SGX_QL_QV_RESULT_OK) {
|
||||
if collateral_expired || result != sgx_ql_qv_result_t::SGX_QL_QV_RESULT_OK {
|
||||
print!("Attestation failed: ");
|
||||
|
||||
if collateral_expired {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue