git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: abe81ee)
pgcrypto: Remove unused error code
2022年2月21日 09:55:03 +0000 (10:55 +0100)
2022年2月21日 09:55:03 +0000 (10:55 +0100)
PXE_DEV_READ_ERROR hasn't been used since random device support was
removed from pgcrypto (fe0a0b5993dfe24e4b3bcf52fa64ff41a444b8f1).


diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c
index 360acbd593752f6fcbf718ead61d38c96f2f4ddd..75e2426e9fd705565b6fbf5445900278e2c4bc5e 100644 (file)
--- 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 3ed9f711c8ae297d1cd0391536f151c2c5d85ebb..eef49a8b766b88f98ec0426c8f4db0c974d6a607 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /