From: Bodo Möller Date: Mon, 17 May 1999 20:46:43 +0000 (+0000) Subject: If we couldn't handle "-showcerts" (which happens with the current X-Git-Tag: OpenSSL_0_9_3beta1~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc2e519a89dec54f7a075170ac5d9102642a6cbe;p=oweals%2Fopenssl.git If we couldn't handle "-showcerts" (which happens with the current SSL2 implementation), show at least the server certificate. --- 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