pgsql: Use abstracted SSL API in server connection log messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Use abstracted SSL API in server connection log messages
Дата
Msg-id E1ef5Ms-00080Z-Hc@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Use abstracted SSL API in server connection log messages

The existing "connection authorized" server log messages used OpenSSL
API calls directly, even though similar abstracted API calls exist.
Change to use the latter instead.

Change the function prototype for the functions that return the TLS
version and the cipher to return const char * directly instead of
copying into a buffer.  That makes them slightly easier to use.

Add bits= to the message.  psql shows that, so we might as well show the
same information on the client and server.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c1869542b3a4da4b12cace2253ef177da761c00d

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 16 ++++++++--------
src/backend/postmaster/pgstat.c       |  4 ++--
src/backend/utils/init/postinit.c     | 22 ++++++++++++++--------
src/include/libpq/libpq-be.h          |  4 ++--
4 files changed, 26 insertions(+), 20 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove byte-masking macros for Datum conversion macros
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: pageinspect: Fix use of wrong memory context byhash_page_items.