summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Peng2025-06-30 02:55:08 +0000
committerBo Peng2025-06-30 02:55:08 +0000
commit88cef7cc3b6b7dcfa07b49b913f585ef4ab05711 (patch)
treee467c41a3b78775853b5611253c3ce3b9e83799d
parentdaf7aac06a65676fd10797ba2082b0b30caea956 (diff)
Fix broken scram-sha-256 authentication on big-endian machies.V4_5_STABLE
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
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c927aab7e..4909d7ded 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,7 +105,7 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_HEADER_TIME
-
+AC_C_BIGENDIAN
dnl ===== Copied from PostgreSQL's configure start =====
dnl