summaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-03-04 19:06:43 +0000
committerRich Salz <rsalz@openssl.org>2016-03-09 13:07:09 -0500
commit328f36c5c51994391363162b76c94819f9a12ae0 (patch)
tree1c08ac98876a0d79ca8293fbc52e82b1b3f124fe /apps/s_client.c
parent60b350a3ef9620866a43358ecd1874c6fc482d9c (diff)
Do not display a CT log error message if CT validation is disabled
Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/s_client.c')
-rw-r--r--apps/s_client.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 25f51487f1..cf238c795b 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1670,8 +1670,18 @@ int s_client_main(int argc, char **argv)
}
if (!ctx_set_ctlog_list_file(ctx, ctlog_file)) {
- ERR_print_errors(bio_err);
- goto end;
+ if (ct_validation != NULL) {
+ ERR_print_errors(bio_err);
+ goto end;
+ }
+
+ /*
+ * If CT validation is not enabled, the log list isn't needed so don't
+ * show errors or abort. We try to load it regardless because then we
+ * can show the names of the logs any SCTs came from (SCTs may be seen
+ * even with validation disabled).
+ */
+ ERR_clear_error();
}
#endif