]> granicus.if.org Git - openssl/commitdiff
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:47:24 +0000 (16:47 +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)

apps/s_cb.c

index 935ea9022d7f58b6d76bf56666673e2555c8eb6b..47b8afe9ef5f6dcada891dc70969f15b1d6d3a8f 100644 (file)
@@ -1508,7 +1508,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;
     }