From ef4d601f390cf433ed245c2f22e19ce772b92347 Mon Sep 17 00:00:00 2001 From: Michael Preisach Date: Mon, 13 Sep 2021 15:57:34 +0000 Subject: [PATCH] minor changes --- member-tpm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/member-tpm.c b/member-tpm.c index ae6993a..611a360 100644 --- a/member-tpm.c +++ b/member-tpm.c @@ -147,8 +147,9 @@ static int tpm_initialize(struct tpm_context *ctx, const char *pub_key_filename, } //initialize ecdaa tpm context - if(0 != ecdaa_tpm_context_init(&ctx->tpm_ctx, key_handle, NULL, 0, ctx->tcti_context)) { - printf("Error: ECDAA context failed.\n"); + ret = ecdaa_tpm_context_init(&ctx->tpm_ctx, key_handle, NULL, 0, ctx->tcti_context); + if ( 0 != ret) { + printf("Error: ECDAA context failed: ret = 0x%x\n", ret); return -1; } #ifdef DEBUG