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 <[email protected]> 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

+1-4
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)