Consistent error reporting for encryption/decryption in pgcrypto

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Consistent error reporting for encryption/decryption in pgcrypto
Дата
Msg-id 03049139-CB7A-436E-B71B-42696D3E2EF7@yesql.se
обсуждение исходный текст
Ответы Re: Consistent error reporting for encryption/decryption in pgcrypto  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Commit b918bf86c65 added the errorcode PXE_DECRYPT_FAILED to the existing set
of PXE_ error codes.  When pgcrypto was changed to the EVP APIs in 5ff4a67f63,
no new error codes were added in favour of existing ones.  This results in
encryption failures returning PXE_ERR_GENERIC, which seems a bit inconsistent.

The attached introduce PXE_ENCRYPT_FAILED and use that for EVP_EncryptUpdate to
ideally be slightly clearer in case of errors.  Any reason not to do that
instead of using ERR_GENERIC?

cheers ./daniel






Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Disable WAL logging to speed up data loading
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Autovacuum worker doesn't immediately exit on postmaster death