aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCsókás Bence2023-12-14 17:54:17 +0100
committerTom Rini2023-12-21 11:59:49 -0500
commitfa78301a986f4c7daf31bac2ba0e9216e76acd31 (patch)
treee5da3ba0d1119e7f050831ebdbddc9ca139edd0e /lib
parent63a2a5082effac66964f0e0e9b279da31a84aa58 (diff)
lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure
Signed-off-by: Csókás Bence <csokas.bence@prolan.hu> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/rsa/rsa-sign.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
index 7ae163f264b..858ad92a6f6 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;
}