diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-01-14 11:25:39 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-01-14 11:25:39 +0900 |
commit | ad5b6f248ab288c3252d8122d12a1eb410d4a0b6 (patch) | |
tree | dd914d58c9e73ef85bad9978e7c249462374a404 /src/include/libpq/crypt.h | |
parent | 4aee39ddb8fa748a6beea2bc1b48882990c226a7 (diff) |
Revert error handling improvements for cryptohashes
This reverts commits ab27df2, af8d530 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
Diffstat (limited to 'src/include/libpq/crypt.h')
-rw-r--r-- | src/include/libpq/crypt.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h index 46799427e81..a4fea6e477a 100644 --- a/src/include/libpq/crypt.h +++ b/src/include/libpq/crypt.h @@ -35,13 +35,12 @@ extern PasswordType get_password_type(const char *shadow_pass); extern char *encrypt_password(PasswordType target_type, const char *role, const char *password); -extern char *get_role_password(const char *role, const char **logdetail); +extern char *get_role_password(const char *role, char **logdetail); extern int md5_crypt_verify(const char *role, const char *shadow_pass, const char *client_pass, const char *md5_salt, - int md5_salt_len, const char **logdetail); + int md5_salt_len, char **logdetail); extern int plain_crypt_verify(const char *role, const char *shadow_pass, - const char *client_pass, - const char **logdetail); + const char *client_pass, char **logdetail); #endif |