From fa78301a986f4c7daf31bac2ba0e9216e76acd31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cs=C3=B3k=C3=A1s=20Bence?= Date: Thu, 14 Dec 2023 17:54:17 +0100 Subject: [PATCH] lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Csókás Bence Reviewed-by: Tom Rini --- 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 7ae163f264..858ad92a6f 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.39.5