1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

pgcrypto: report init errors as PXE_CIPHER_INIT

Report OpenSSL errors during initialization as PXE_CIPHER_INIT since
that's just what they were, and not generic unknown errors. This also
removes the last users of the generic error, and thus it can be removed.

Discussion: http://postgr.es/m/C89D932C-501E-4473-9750-638CFCD9095E@yesql.se
This commit is contained in:
Daniel Gustafsson
2022-05-06 14:41:33 +02:00
parent 17ec5fa502
commit 0250a167a0
3 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,7 @@
* PX error codes
*/
#define PXE_OK 0
#define PXE_ERR_GENERIC -1
/* -1 is unused */
#define PXE_NO_HASH -2
#define PXE_NO_CIPHER -3
/* -4 is unused */