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
0001-Use-a-more-descriptive-error-for-failed-encryption.patch
Description: Binary data