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: 5c868c9)
pgcrypto: Remove unused error code
2022年2月21日 09:28:43 +0000 (10:28 +0100)
2022年2月21日 09:28:43 +0000 (10:28 +0100)
PXE_MCRYPT_INTERNAL was apparently never used even when it was added.


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

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