mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -209,13 +209,13 @@ px_find_digest(const char *name, PX_MD **res)
|
||||
if (!ctx)
|
||||
{
|
||||
pfree(digest);
|
||||
return -1;
|
||||
return PXE_CIPHER_INIT;
|
||||
}
|
||||
if (EVP_DigestInit_ex(ctx, md, NULL) == 0)
|
||||
{
|
||||
EVP_MD_CTX_destroy(ctx);
|
||||
pfree(digest);
|
||||
return -1;
|
||||
return PXE_CIPHER_INIT;
|
||||
}
|
||||
|
||||
digest->algo = md;
|
||||
|
Reference in New Issue
Block a user