aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/internal-sha2.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pgcrypto/internal-sha2.c')
-rw-r--r--contrib/pgcrypto/internal-sha2.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/pgcrypto/internal-sha2.c b/contrib/pgcrypto/internal-sha2.c
index a35f113a14a..ecf3004e95b 100644
--- a/contrib/pgcrypto/internal-sha2.c
+++ b/contrib/pgcrypto/internal-sha2.c
@@ -101,8 +101,7 @@ int_sha2_update(PX_MD *h, const uint8 *data, unsigned dlen)
pg_cryptohash_ctx *ctx = (pg_cryptohash_ctx *) h->p.ptr;
if (pg_cryptohash_update(ctx, data, dlen) < 0)
- elog(ERROR, "could not update %s context: %s", "SHA2",
- pg_cryptohash_error(ctx));
+ elog(ERROR, "could not update %s context", "SHA2");
}
static void
@@ -111,8 +110,7 @@ int_sha2_reset(PX_MD *h)
pg_cryptohash_ctx *ctx = (pg_cryptohash_ctx *) h->p.ptr;
if (pg_cryptohash_init(ctx) < 0)
- elog(ERROR, "could not initialize %s context: %s", "SHA2",
- pg_cryptohash_error(ctx));
+ elog(ERROR, "could not initialize %s context", "SHA2");
}
static void
@@ -121,8 +119,7 @@ int_sha2_finish(PX_MD *h, uint8 *dst)
pg_cryptohash_ctx *ctx = (pg_cryptohash_ctx *) h->p.ptr;
if (pg_cryptohash_final(ctx, dst, h->result_size(h)) < 0)
- elog(ERROR, "could not finalize %s context: %s", "SHA2",
- pg_cryptohash_error(ctx));
+ elog(ERROR, "could not finalize %s context", "SHA2");
}
static void