| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add error code for encryption failure in pgcrypto |
| Date: | 2020-11-01 10:23:34 |
| Message-ID: | E1kZAWM-0007mT-OA@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add error code for encryption failure in pgcrypto
PXE_DECRYPT_FAILED exists already for decryption errors, and an
equivalent for encryption did not exist. There is one code path that
deals with such failures for OpenSSL but it used PXE_ERR_GENERIC, which
was inconsistent. This switches this code path to use the new error
PXE_ENCRYPT_FAILED instead of PXE_ERR_GENERIC, making the code used for
encryption more consistent with the decryption.
Author: Daniel Gustafsson
Discussion: https://postgr.es/m/03049139-CB7A-436E-B71B-42696D3E2EF7@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/aecaa04418f39c32adb3dbf91c4aa7f6e175f01c
Modified Files
--------------
contrib/pgcrypto/openssl.c | 2 +-
contrib/pgcrypto/px.c | 1 +
contrib/pgcrypto/px.h | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2020-11-01 12:26:01 | pgsql: Preserve index data in pg_statistic across REINDEX CONCURRENTLY |
| Previous Message | Noah Misch | 2020-10-31 15:52:07 | pgsql: Reproduce debug_query_string==NULL on parallel workers. |