DPE: Add GetCertificateChain command
Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: I16996db0cde6a6f709408e061ab7c11b880c4d9a
diff --git a/partitions/dice_protection_environment/dpe_log.c b/partitions/dice_protection_environment/dpe_log.c
index 1b57613..ce5e454 100644
--- a/partitions/dice_protection_environment/dpe_log.c
+++ b/partitions/dice_protection_environment/dpe_log.c
@@ -99,6 +99,17 @@
print_byte_array(label, label_size);
}
+void log_get_certificate_chain(int context_handle,
+ bool retain_context,
+ bool clear_from_context)
+{
+ LOG_DBGFMT("DPE GetCertificateChain:\r\n");
+ LOG_DBGFMT(" - context_handle index = %d\r\n", GET_IDX(context_handle));
+ LOG_DBGFMT(" - context_handle nonce = %d\r\n", GET_NONCE(context_handle));
+ LOG_DBGFMT(" - retain_context = %d\r\n", retain_context);
+ LOG_DBGFMT(" - clear_from_context = %d\r\n", clear_from_context);
+}
+
void log_intermediate_certificate(uint16_t layer_idx,
const uint8_t *cert_buf,
size_t cert_buf_size)