提交 e264cfe1 编写于 作者: R Richard Levitte

Better error reporting in 'openssl engine'

上级 8224b0cb
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000] 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. *) Never call load_dh_param(NULL) in s_server.
[Bodo Moeller] [Bodo Moeller]
......
...@@ -98,6 +98,7 @@ int MAIN(int argc, char **argv) ...@@ -98,6 +98,7 @@ int MAIN(int argc, char **argv)
BIO *bio_out=NULL; BIO *bio_out=NULL;
apps_startup(); apps_startup();
SSL_load_error_strings();
if (bio_err == NULL) if (bio_err == NULL)
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
...@@ -176,21 +177,17 @@ int MAIN(int argc, char **argv) ...@@ -176,21 +177,17 @@ int MAIN(int argc, char **argv)
else else
{ {
BIO_printf(bio_out, "unavailable"); BIO_printf(bio_out, "unavailable");
ERR_clear_error();
} }
} }
BIO_printf(bio_out, "\n"); BIO_printf(bio_out, "\n");
} }
else else
BIO_printf(bio_err, "Engine %s does not exist\n", id); ERR_print_errors(bio_err);
} }
ret=0; ret=0;
if (0) ERR_print_errors(bio_err);
{
err:
SSL_load_error_strings();
ERR_print_errors(bio_err);
}
end: end:
sk_pop_free(engines, identity); sk_pop_free(engines, identity);
if (bio_out != NULL) BIO_free_all(bio_out); if (bio_out != NULL) BIO_free_all(bio_out);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册