[PATCH] lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure
Csókás Bence
csokas.bence at prolan.hu
Thu Dec 14 17:54:17 CET 2023
Signed-off-by: Csókás Bence <csokas.bence at prolan.hu>
---
lib/rsa/rsa-sign.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
index d20bdb58a5..0d67a80b82 100644
--- a/lib/rsa/rsa-sign.c
+++ b/lib/rsa/rsa-sign.c
@@ -317,7 +317,8 @@ static int rsa_engine_init(const char *engine_id, ENGINE **pe)
e = ENGINE_by_id(engine_id);
if (!e) {
- fprintf(stderr, "Engine isn't available\n");
+ fprintf(stderr, "Engine '%s' isn't available\n", engine_id);
+ ERR_print_errors_fp(stderr);
return -1;
}
--
2.25.1
More information about the U-Boot
mailing list