aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-02-21 10:55:03 +0100
committerPeter Eisentraut <peter@eisentraut.org>2022-02-21 10:55:03 +0100
commit3f649663a49d5bb815858d90a271bb532c58fd0e (patch)
tree7c06041cd36fec57c3bf40a259469f4645318de1
parentabe81ee08468e63f94b91e484f47c867bcc706d3 (diff)
downloadpostgresql-3f649663a49d5bb815858d90a271bb532c58fd0e.tar.gz
postgresql-3f649663a49d5bb815858d90a271bb532c58fd0e.zip
pgcrypto: Remove unused error code
PXE_DEV_READ_ERROR hasn't been used since random device support was removed from pgcrypto (fe0a0b5993dfe24e4b3bcf52fa64ff41a444b8f1).
-rw-r--r--contrib/pgcrypto/px.c1
-rw-r--r--contrib/pgcrypto/px.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c
index 360acbd5937..75e2426e9fd 100644
--- a/contrib/pgcrypto/px.c
+++ b/contrib/pgcrypto/px.c
@@ -50,7 +50,6 @@ static const struct error_desc px_err_list[] = {
{PXE_KEY_TOO_BIG, "Key was too big"},
{PXE_CIPHER_INIT, "Cipher cannot be initialized ?"},
{PXE_HASH_UNUSABLE_FOR_HMAC, "This hash algorithm is unusable for HMAC"},
- {PXE_DEV_READ_ERROR, "Error reading from random device"},
{PXE_BUG, "pgcrypto bug"},
{PXE_ARGUMENT_ERROR, "Illegal argument to function"},
{PXE_UNKNOWN_SALT_ALGO, "Unknown salt algorithm"},
diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h
index 3ed9f711c8a..eef49a8b766 100644
--- a/contrib/pgcrypto/px.h
+++ b/contrib/pgcrypto/px.h
@@ -53,7 +53,8 @@
#define PXE_KEY_TOO_BIG -7
#define PXE_CIPHER_INIT -8
#define PXE_HASH_UNUSABLE_FOR_HMAC -9
-#define PXE_DEV_READ_ERROR -10
+/* -10 is unused */
+/* -11 is unused */
#define PXE_BUG -12
#define PXE_ARGUMENT_ERROR -13
#define PXE_UNKNOWN_SALT_ALGO -14