postgres.git / summary / log / commit / refs
commit abe81ee08468e63f94b91e484f47c867bcc706d3
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Mon Feb 21 09:28:43 2022 +0000
First released in: 15.0
pgcrypto: Remove unused error code
PXE_MCRYPT_INTERNAL was apparently never used even when it was added.
contrib/pgcrypto/px.c | 1 -
contrib/pgcrypto/px.h | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c
index 4205e9c3eff..360acbd5937 100644
--- a/contrib/pgcrypto/px.c
+++ b/contrib/pgcrypto/px.c
@@ -55,7 +55,6 @@ static const struct error_desc px_err_list[] = {
{PXE_ARGUMENT_ERROR, "Illegal argument to function"},
{PXE_UNKNOWN_SALT_ALGO, "Unknown salt algorithm"},
{PXE_BAD_SALT_ROUNDS, "Incorrect number of rounds"},
- {PXE_MCRYPT_INTERNAL, "mcrypt internal error"},
{PXE_NO_RANDOM, "Failed to generate strong random bits"},
{PXE_DECRYPT_FAILED, "Decryption failed"},
{PXE_ENCRYPT_FAILED, "Encryption failed"},
diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h
index 17d6f224987..3ed9f711c8a 100644
--- a/contrib/pgcrypto/px.h
+++ b/contrib/pgcrypto/px.h
@@ -58,7 +58,7 @@
#define PXE_ARGUMENT_ERROR -13
#define PXE_UNKNOWN_SALT_ALGO -14
#define PXE_BAD_SALT_ROUNDS -15
-#define PXE_MCRYPT_INTERNAL -16
+/* -16 is unused */
#define PXE_NO_RANDOM -17
#define PXE_DECRYPT_FAILED -18
#define PXE_ENCRYPT_FAILED -19
[parent: 5c868c92caa8]