mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Include SSL compression status in psql banner and connection logging
Both the psql banner and the connection logging already included SSL status, cipher and bitlength, this adds the information about compression being on or off.
This commit is contained in:
@ -1800,8 +1800,9 @@ printSSLInfo(void)
|
||||
return; /* no SSL */
|
||||
|
||||
SSL_get_cipher_bits(ssl, &sslbits);
|
||||
printf(_("SSL connection (protocol: %s, cipher: %s, bits: %d)\n"),
|
||||
SSL_get_version(ssl), SSL_get_cipher(ssl), sslbits);
|
||||
printf(_("SSL connection (protocol: %s, cipher: %s, bits: %d, compression: %s)\n"),
|
||||
SSL_get_version(ssl), SSL_get_cipher(ssl), sslbits,
|
||||
SSL_get_current_compression(ssl) ? _("on") : _("off"));
|
||||
#else
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user