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>
This commit is contained in:
Csókás Bence 2023-12-14 17:54:17 +01:00 committed by Tom Rini
parent 63a2a5082e
commit fa78301a98

View 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;
}