feat: allow event log re-initialization for DRTM
Relax the initialization check in `event_log_init_and_reg` to permit
multiple calls. This adjustment supports scenarios like DRTM, which
requires initializing a fresh event log during each dynamic launch.
Change-Id: I29a189f64f4aeda82e11c5e7d7a83a7a1af1f3ce
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
diff --git a/src/event_log.c b/src/event_log.c
index d59346b..9d8c902 100644
--- a/src/event_log.c
+++ b/src/event_log.c
@@ -259,10 +259,6 @@
return rc;
}
- if (crypto_hash_info != NULL) {
- return -EEXIST;
- }
-
if (hash_info == NULL || hash_info->func == NULL ||
hash_info->count < 0 || hash_info->count > HASH_ALG_COUNT) {
return -EINVAL;