Corret output_sgx_report() print output format in oecertdump.
@@ -318,6 +318,7 @@ oe_result_t output_sgx_report(const uint8_t* report, size_t report_size)
printf(" } report_body\n");
printf(" signature_len: %d\n", quote->signature_len);
+ printf(" signature_data: {\n");
printf(" sgx_quote_auth_data_t {\n");
printf(" signature (hex): ");
oe_hex_dump(
@@ -330,7 +331,8 @@ oe_result_t output_sgx_report(const uint8_t* report, size_t report_size)
printf(" qe_report_body {\n");
printf(" cpusvn (hex): ");
oe_hex_dump(qe_report_body->cpusvn, OE_COUNTOF(qe_report_body->cpusvn));
- printf(" miscselect: 0x%x\n", qe_report_body->miscselect);
+ printf(
+ " miscselect: 0x%x\n", qe_report_body->miscselect);
printf(" attributes (hex): ");
oe_hex_dump(
&qe_report_body->attributes, sizeof(qe_report_body->attributes));
@@ -350,7 +352,6 @@ oe_result_t output_sgx_report(const uint8_t* report, size_t report_size)
&quote_auth_data->qe_report_body_signature,
sizeof(quote_auth_data->qe_report_body_signature));
printf(" } sgx_quote_auth_data_t\n");
- printf(" } sgx_quote_t\n");
printf(" qe_auth_data {\n");
printf(" size: %d\n", qe_auth_data.size);
printf(" data (hex): ");
@@ -363,6 +364,8 @@ oe_result_t output_sgx_report(const uint8_t* report, size_t report_size)
printf(" qe cert:\n");
output_certificate_chain(qe_cert_data.data, qe_cert_data.size, true);
printf(" } qe_cert_data\n");
+ printf(" } signature_data\n");
+ printf(" } sgx_quote_t\n");
printf("} oe_report_header\n");
