aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-02 18:58:43 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-02 18:58:43 +0000
commite264cfe17a6495c56bdd7a46f09b537299f3123d (patch)
tree20685c0c2d97af2eca518f55ad1e62f8c962c949
parent8224b0cbe51ce28bcb11440f0262bb8122991b08 (diff)
downloadopenssl-e264cfe17a6495c56bdd7a46f09b537299f3123d.zip
openssl-e264cfe17a6495c56bdd7a46f09b537299f3123d.tar.gz
openssl-e264cfe17a6495c56bdd7a46f09b537299f3123d.tar.bz2
Better error reporting in 'openssl engine'
-rw-r--r--CHANGES3
-rw-r--r--apps/engine.c11
2 files changed, 7 insertions, 7 deletions
diff --git a/CHANGES b/CHANGES
index 2e3e2ab..6d83cfa 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
+ *) Better error reporting in 'openssl engine'.
+ [Richard Levitte]
+
*) Never call load_dh_param(NULL) in s_server.
[Bodo Moeller]
diff --git a/apps/engine.c b/apps/engine.c
index 42f768b..a666961 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);