Skip to content

Commit d816f36

Browse files
committed
psql: Make SSL info display more compact
Remove the bits display, since that can be derived from the cipher suite. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://www.postgresql.org/message-id/flat/aee28ee7-0ab3-c2e2-5bed-109feb0c089b%40enterprisedb.com
1 parent ceb57af commit d816f36

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bin/psql/command.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3667,21 +3667,18 @@ printSSLInfo(void)
36673667
{
36683668
const char *protocol;
36693669
const char *cipher;
3670-
const char *bits;
36713670
const char *compression;
36723671

36733672
if (!PQsslInUse(pset.db))
36743673
return; /* no SSL */
36753674

36763675
protocol = PQsslAttribute(pset.db, "protocol");
36773676
cipher = PQsslAttribute(pset.db, "cipher");
3678-
bits = PQsslAttribute(pset.db, "key_bits");
36793677
compression = PQsslAttribute(pset.db, "compression");
36803678

3681-
printf(_("SSL connection (protocol: %s, cipher: %s, bits: %s, compression: %s)\n"),
3679+
printf(_("SSL connection (protocol: %s, cipher: %s, compression: %s)\n"),
36823680
protocol ? protocol : _("unknown"),
36833681
cipher ? cipher : _("unknown"),
3684-
bits ? bits : _("unknown"),
36853682
(compression && strcmp(compression, "off") != 0) ? _("on") : _("off"));
36863683
}
36873684

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy