Suppress 'No server certificate CA names sent' message
authorBilly Brawner <billy@wbrawner.com>
Wed, 28 Aug 2019 00:07:17 +0000 (17:07 -0700)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 4 Sep 2019 14:48:49 +0000 (16:48 +0200)
Fixes #9080

Signed-off-by: Billy Brawner <billy@wbrawner.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9710)

(cherry picked from commit 1e8e75d18be8856e753a57771754b9926c3f4264)

apps/s_cb.c

index 520323c8b05cfe0498a7a8dc6ad46ff8a29f88a2..5dc1d03f28837a46f132a9fc4133156537db6e97 100644 (file)
@@ -1525,7 +1525,8 @@ void print_ca_names(BIO *bio, SSL *s)
     int i;
 
     if (sk == NULL || sk_X509_NAME_num(sk) == 0) {
-        BIO_printf(bio, "---\nNo %s certificate CA names sent\n", cs);
+        if (!SSL_is_server(s))
+            BIO_printf(bio, "---\nNo %s certificate CA names sent\n", cs);
         return;
     }