提交 6bea2a72 编写于 作者: R Rob Percival 提交者: Rich Salz

Minor improvement to formatting of SCT output in s_client

Reviewed-by: NEmilia Käsper <emilia@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 328f36c5
...@@ -2613,14 +2613,19 @@ static void print_stuff(BIO *bio, SSL *s, int full) ...@@ -2613,14 +2613,19 @@ static void print_stuff(BIO *bio, SSL *s, int full)
#ifndef OPENSSL_NO_CT #ifndef OPENSSL_NO_CT
scts = SSL_get0_peer_scts(s); scts = SSL_get0_peer_scts(s);
BIO_printf(bio, "---\nSCTs present (%i)\n---\n", BIO_printf(bio, "---\nSCTs present (%i)\n",
scts ? sk_SCT_num(scts) : 0); scts != NULL ? sk_SCT_num(scts) : 0);
SCT_LIST_print(scts, bio, 0, "\n---\n");
BIO_printf(bio, "\n");
if (SSL_get_ct_validation_callback(s) == NULL) { if (SSL_get_ct_validation_callback(s) == NULL) {
BIO_printf(bio, "---\nWarning: CT validation is disabled, so not all " BIO_printf(bio, "Warning: CT validation is disabled, so not all "
"SCTs may be displayed. Re-run with \"-requestct\".\n"); "SCTs may be displayed. Re-run with \"-requestct\".\n");
} }
if (scts != NULL && sk_SCT_num(scts) > 0) {
BIO_printf(bio, "---\n");
SCT_LIST_print(scts, bio, 0, "\n---\n");
BIO_printf(bio, "\n");
}
#endif #endif
BIO_printf(bio, BIO_printf(bio,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册