pgsql: Remove one use of IDENT_USERNAME_MAX

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Remove one use of IDENT_USERNAME_MAX
Дата
Msg-id E1iPl3u-0003IY-5Y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove one use of IDENT_USERNAME_MAX

IDENT_USERNAME_MAX is the maximum length of the information returned
by an ident server, per RFC 1413.  Using it as the buffer size in peer
authentication is inappropriate.  It was done here because of the
historical relationship between peer and ident authentication.  To
reduce confusion between the two authenticaton methods and disentangle
their code, use a dynamically allocated buffer instead.

Discussion: https://www.postgresql.org/message-id/flat/c798fba5-8b71-4f27-c78e-37714037ea31%402ndquadrant.com

Branch
------
master

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

Modified Files
--------------
src/backend/libpq/auth.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Update code comments about peer authenticaton
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: relnotes: PG 12, mention change in libpq parameter parsing