From 9768dc5ab9a01a60e899bfc5c9e1a51475ded183 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 1 Mar 2022 09:38:38 +0100 Subject: [PATCH v2] psql: Make SSL info display more compact Remove the bits display, since that can be derived from the cipher suite. --- src/bin/psql/command.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 292cff5df9..079f4a1a76 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3667,7 +3667,6 @@ printSSLInfo(void) { const char *protocol; const char *cipher; - const char *bits; const char *compression; if (!PQsslInUse(pset.db)) @@ -3675,13 +3674,11 @@ printSSLInfo(void) protocol = PQsslAttribute(pset.db, "protocol"); cipher = PQsslAttribute(pset.db, "cipher"); - bits = PQsslAttribute(pset.db, "key_bits"); compression = PQsslAttribute(pset.db, "compression"); - printf(_("SSL connection (protocol: %s, cipher: %s, bits: %s, compression: %s)\n"), + printf(_("SSL connection (protocol: %s, cipher: %s, compression: %s)\n"), protocol ? protocol : _("unknown"), cipher ? cipher : _("unknown"), - bits ? bits : _("unknown"), (compression && strcmp(compression, "off") != 0) ? _("on") : _("off")); } base-commit: a33e17f210547226ada52d2b8af851c3553bb4fa -- 2.35.1