X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fengine.c;h=a66696152fef64994737dd2a857fdc883729a513;hp=42f768b12f82d7cd0db297c91a088f73315fe0a4;hb=e264cfe17a6495c56bdd7a46f09b537299f3123d;hpb=8224b0cbe51ce28bcb11440f0262bb8122991b08 diff --git a/apps/engine.c b/apps/engine.c index 42f768b12f..a66696152f 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -98,6 +98,7 @@ int MAIN(int argc, char **argv) BIO *bio_out=NULL; apps_startup(); + SSL_load_error_strings(); if (bio_err == NULL) bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); @@ -176,21 +177,17 @@ int MAIN(int argc, char **argv) else { BIO_printf(bio_out, "unavailable"); + ERR_clear_error(); } } BIO_printf(bio_out, "\n"); } else - BIO_printf(bio_err, "Engine %s does not exist\n", id); + ERR_print_errors(bio_err); } ret=0; - if (0) - { -err: - SSL_load_error_strings(); - ERR_print_errors(bio_err); - } + ERR_print_errors(bio_err); end: sk_pop_free(engines, identity); if (bio_out != NULL) BIO_free_all(bio_out);