From: | Bo Peng <pengbo(at)sraoss(dot)co(dot)jp> |
---|---|
To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgpool: Fix broken scram-sha-256 authentication on big-endian machies. |
Date: | 2025-06-30 03:02:41 |
Message-ID: | E1uW4n2-007bgo-1R@gothos.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgpool-committers |
Fix broken scram-sha-256 authentication on big-endian machies.
When scram-sha-256 authentication is performed, a hash function
pg_sha_256_final is used. It was imported from PostgreSQL and it uses
preprocessor define WORDS_BIGENDIAN to judge host machine's
endianness. Although WORDS_BIGENDIAN should be defined while
configure, this part was missed when pg_sha_256_final (and others) was
imported from PostgreSQL. As a result, scram-sha-256 worked only in
little endian machines. This commit fixes the issue by adding
AC_C_BIGENDIAN macro to configure.ac.
Author: Tatsuo Ishii
Reported-by: Christoph Berg
Reviewed-by: pranavkaruvally
Discussion: https://github.com/pgpool/pgpool2/issues/106
Backpatch-through: v4.2
Branch
------
V4_5_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=88cef7cc3b6b7dcfa07b49b913f585ef4ab05711
Modified Files
--------------
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bo Peng | 2025-06-30 03:03:11 | pgpool: Fix broken scram-sha-256 authentication on big-endian machies. |
Previous Message | Bo Peng | 2025-06-30 03:01:35 | pgpool: Fix broken scram-sha-256 authentication on big-endian machies. |