]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Revert error handling improvements for cryptohashes
authorMichael Paquier <michael@paquier.xyz>
Fri, 14 Jan 2022 02:25:39 +0000 (11:25 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 14 Jan 2022 02:25:39 +0000 (11:25 +0900)
commitad5b6f248ab288c3252d8122d12a1eb410d4a0b6
treedd914d58c9e73ef85bad9978e7c249462374a404
parent4aee39ddb8fa748a6beea2bc1b48882990c226a7
Revert error handling improvements for cryptohashes

This reverts commits ab27df2af8d530 and 3a0cced, that introduced
pg_cryptohash_error().  In order to make the core code able to pass down
the new error types that this introduced, some of the MD5-related
routines had to be reworked, causing an ABI breakage, but we found that
some external extensions rely on them.  Maintaining compatibility
outweights the error report benefits, so just revert the change in v14.

Reported-by: Laurenz Albe
Discussion: https://postgr.es/m/9f0c0a96d28cf14fc87296bbe67061c14eb53ae8.camel@cybertec.at
19 files changed:
contrib/passwordcheck/passwordcheck.c
contrib/pgcrypto/internal-sha2.c
contrib/pgcrypto/internal.c
contrib/uuid-ossp/uuid-ossp.c
src/backend/commands/user.c
src/backend/libpq/auth-scram.c
src/backend/libpq/auth.c
src/backend/libpq/crypt.c
src/backend/replication/backup_manifest.c
src/backend/utils/adt/cryptohashfuncs.c
src/common/cryptohash.c
src/common/cryptohash_openssl.c
src/common/md5_common.c
src/include/common/cryptohash.h
src/include/common/md5.h
src/include/libpq/crypt.h
src/include/libpq/scram.h
src/interfaces/libpq/fe-auth.c
src/tools/pgindent/typedefs.list