diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-10-23 16:10:27 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-10-23 16:10:27 +0200 |
commit | 6d16f9debae0a09a7db91d7f204bda043d04792c (patch) | |
tree | cd956bb5b9cd0c447da688e7f35fa09fb366feac /src/backend/libpq/auth-scram.c | |
parent | 17b4aa77c3a161a9d0e7b08bd9931fe9fd051540 (diff) | |
download | postgresql-6d16f9debae0a09a7db91d7f204bda043d04792c.tar.gz postgresql-6d16f9debae0a09a7db91d7f204bda043d04792c.zip |
Make SASL max message length configurable
The proposed OAUTHBEARER SASL mechanism will need to allow larger
messages in the exchange, since tokens are sent directly by the
client. Move this limit into the pg_be_sasl_mech struct so that
it can be changed per-mechanism.
Author: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAOYmi+nqX_5=Se0W0Ynrr55Fha3CMzwv_R9P3rkpHb=1kG7ZTQ@mail.gmail.com
Diffstat (limited to 'src/backend/libpq/auth-scram.c')
-rw-r--r-- | src/backend/libpq/auth-scram.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/libpq/auth-scram.c b/src/backend/libpq/auth-scram.c index 56df870e9ef..8c5b6d9c67e 100644 --- a/src/backend/libpq/auth-scram.c +++ b/src/backend/libpq/auth-scram.c @@ -113,7 +113,9 @@ static int scram_exchange(void *opaq, const char *input, int inputlen, const pg_be_sasl_mech pg_be_scram_mech = { scram_get_mechanisms, scram_init, - scram_exchange + scram_exchange, + + PG_MAX_SASL_MESSAGE_LENGTH }; /* |