Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd816f36

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

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
constchar*protocol;
36693669
constchar*cipher;
3670-
constchar*bits;
36713670
constchar*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)

[8]ページ先頭

©2009-2025 Movatter.jp