mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
psql: Change new \conninfo to use SSL instead of TLS
Commit bba2fbc623
introduced a new implementation of the \conninfo
command in psql. That new code uses the term "TLS" while the rest of
PostgreSQL, including the rest of psql, consistently uses "SSL". This
is uselessly confusing. This changes the new code to use "SSL" as
well.
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/f4ff9294-b491-4053-83f5-11c10ab8c999@eisentraut.org
This commit is contained in:
@ -877,11 +877,11 @@ exec_command_conninfo(PsqlScanState scan_state, bool active_branch)
|
||||
printTableAddCell(&cont, _("Backend PID"), false, false);
|
||||
printTableAddCell(&cont, backend_pid, false, false);
|
||||
|
||||
/* TLS Connection */
|
||||
printTableAddCell(&cont, _("TLS Connection"), false, false);
|
||||
/* SSL Connection */
|
||||
printTableAddCell(&cont, _("SSL Connection"), false, false);
|
||||
printTableAddCell(&cont, ssl_in_use ? _("true") : _("false"), false, false);
|
||||
|
||||
/* TLS Information */
|
||||
/* SSL Information */
|
||||
if (ssl_in_use)
|
||||
{
|
||||
char *library,
|
||||
@ -898,19 +898,19 @@ exec_command_conninfo(PsqlScanState scan_state, bool active_branch)
|
||||
compression = (char *) PQsslAttribute(pset.db, "compression");
|
||||
alpn = (char *) PQsslAttribute(pset.db, "alpn");
|
||||
|
||||
printTableAddCell(&cont, _("TLS Library"), false, false);
|
||||
printTableAddCell(&cont, _("SSL Library"), false, false);
|
||||
printTableAddCell(&cont, library ? library : _("unknown"), false, false);
|
||||
|
||||
printTableAddCell(&cont, _("TLS Protocol"), false, false);
|
||||
printTableAddCell(&cont, _("SSL Protocol"), false, false);
|
||||
printTableAddCell(&cont, protocol ? protocol : _("unknown"), false, false);
|
||||
|
||||
printTableAddCell(&cont, _("TLS Key Bits"), false, false);
|
||||
printTableAddCell(&cont, _("SSL Key Bits"), false, false);
|
||||
printTableAddCell(&cont, key_bits ? key_bits : _("unknown"), false, false);
|
||||
|
||||
printTableAddCell(&cont, _("TLS Cipher"), false, false);
|
||||
printTableAddCell(&cont, _("SSL Cipher"), false, false);
|
||||
printTableAddCell(&cont, cipher ? cipher : _("unknown"), false, false);
|
||||
|
||||
printTableAddCell(&cont, _("TLS Compression"), false, false);
|
||||
printTableAddCell(&cont, _("SSL Compression"), false, false);
|
||||
printTableAddCell(&cont, (compression && strcmp(compression, "off") != 0) ?
|
||||
_("true") : _("false"), false, false);
|
||||
|
||||
|
Reference in New Issue
Block a user