From bc2e519a89dec54f7a075170ac5d9102642a6cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Mon, 17 May 1999 20:46:43 +0000 Subject: [PATCH] If we couldn't handle "-showcerts" (which happens with the current SSL2 implementation), show at least the server certificate. --- apps/s_client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/s_client.c b/apps/s_client.c index cea00788a6..1fa157573a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -688,9 +688,13 @@ static void print_stuff(BIO *bio, SSL *s, int full) if (full) { + int got_a_chain = 0; + sk=SSL_get_peer_cert_chain(s); if (sk != NULL) { + got_a_chain = 1; /* we don't have it for SSL2 (yet) */ + BIO_printf(bio,"---\nCertificate chain\n"); for (i=0; i