Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 31 Jan 2025 14:39:35 +0000 (15:39 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 31 Jan 2025 14:39:35 +0000 (15:39 +0100)
commite21d6f297158db1383a7c9a668ebe1048f2eac39
tree7ab1239dc97bc6ba29907dcecd2b48b976fe6dc6
parent59d6c03956193f622c069a4ab985bade27384ac4
Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h

Future SASL mechanism, like OAUTHBEARER, will use this as a limit on
token messages coming from the client, so promote it to the header
file to make it available.

This patch is extracted from a larger body of work aimed at adding
support for OAUTHBEARER in libpq.

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/CAOYmi+kJqzo6XsR9TEhvVfeVNQ-TyFM5LATypm9yoQVYk=4Wrw@mail.gmail.com
src/backend/libpq/auth.c
src/include/libpq/auth.h