]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure
authorCsókás Bence <csokas.bence@prolan.hu>
Thu, 14 Dec 2023 16:54:17 +0000 (17:54 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 16:59:49 +0000 (11:59 -0500)
Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
Reviewed-by: Tom Rini <trini@konsulko.com>
lib/rsa/rsa-sign.c

index 7ae163f264b5aef394f3e76f65433dfd07df7e05..858ad92a6f6f51f88b64c5166178fc439e1f9aad 100644 (file)
@@ -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;
        }