@@ -251,40 +251,47 @@ impl LCPClient {
251251 selector,
252252 seal,
253253 zkdcap_verifier_info. program_id ,
254- message. commit . to_bytes ( ) ,
254+ message. quote_verification_output . to_bytes ( ) ,
255255 ) ?;
256256
257- let report = if let QuoteBody :: SGXQuoteBody ( report) = message. commit . quote_body {
258- report
259- } else {
260- return Err ( Error :: unexpected_quote_body ( ) ) ;
261- } ;
257+ let report =
258+ if let QuoteBody :: SGXQuoteBody ( report) = message. quote_verification_output . quote_body {
259+ report
260+ } else {
261+ return Err ( Error :: unexpected_quote_body ( ) ) ;
262+ } ;
262263 let report_data = ReportData ( report. report_data ) ;
263264
264265 assert_eq ! (
265266 report. mrenclave. as_slice( ) ,
266267 client_state. mr_enclave. as_slice( ) ,
267268 "mrenclave mismatch"
268269 ) ;
269- assert_eq ! ( message. commit. quote_version, 3 , "unexpected quote version" ) ;
270- assert_eq ! ( message. commit. tee_type, SGX_TEE_TYPE , "unexpected tee type" ) ;
271270 assert_eq ! (
272- message. commit. sgx_intel_root_ca_hash,
271+ message. quote_verification_output. quote_version, 3 ,
272+ "unexpected quote version"
273+ ) ;
274+ assert_eq ! (
275+ message. quote_verification_output. tee_type, SGX_TEE_TYPE ,
276+ "unexpected tee type"
277+ ) ;
278+ assert_eq ! (
279+ message. quote_verification_output. sgx_intel_root_ca_hash,
273280 remote_attestation:: dcap:: INTEL_ROOT_CA_HASH ,
274281 ) ;
275282 assert ! (
276283 message
277- . commit
284+ . quote_verification_output
278285 . validity
279286 . validate_time( ctx. host_timestamp( ) . as_unix_timestamp_secs( ) ) ,
280287 "invalid validity intersection"
281288 ) ;
282- let tcb_status = message. commit . tcb_status . to_string ( ) ;
289+ let tcb_status = message. quote_verification_output . tcb_status . to_string ( ) ;
283290 assert ! (
284291 tcb_status == "UpToDate" || client_state. allowed_quote_statuses. contains( & tcb_status) ,
285292 "unexpected tcb status"
286293 ) ;
287- for advisory_id in message. commit . advisory_ids . iter ( ) {
294+ for advisory_id in message. quote_verification_output . advisory_ids . iter ( ) {
288295 assert ! (
289296 client_state. allowed_advisory_ids. contains( advisory_id) ,
290297 "unexpected advisory id"
@@ -295,7 +302,7 @@ impl LCPClient {
295302 verify_signature_address (
296303 compute_eip712_zkdcap_register_enclave_key (
297304 zkdcap_verifier_info,
298- message. commit . hash ( ) ,
305+ message. quote_verification_output . hash ( ) ,
299306 )
300307 . as_ref ( ) ,
301308 operator_signature. as_ref ( ) ,
@@ -310,7 +317,10 @@ impl LCPClient {
310317 ctx,
311318 & client_id,
312319 report_data. enclave_key ( ) ,
313- EKOperatorInfo :: new ( message. commit . validity . not_after_min , operator) ,
320+ EKOperatorInfo :: new (
321+ message. quote_verification_output . validity . not_after_min ,
322+ operator,
323+ ) ,
314324 ) ;
315325 Ok ( ( ) )
316326 }
0 commit comments