summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2022-01-13 00:43:36 +0000
committerMichael Paquier2022-01-13 00:43:36 +0000
commit87f29f4fcc4e53fe0331e338437edda1f1927530 (patch)
treefa26c1b258fcea1fdf8cb190f7f8bc48152dc108
parentdb6736c93cb844d245b726e7a262f2cdcd34612e (diff)
Fix incorrect comments in hmac.c and hmac_openssl.c
Both files referred to pg_hmac_ctx->data, which, I guess, comes from the early versions of the patch that has resulted in commit e6bdfd9. Author: Sergey Shinderuk Discussion: https://postgr.es/m/[email protected] Backpatch-through: 14
-rw-r--r--src/common/hmac.c4
-rw-r--r--src/common/hmac_openssl.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/common/hmac.c b/src/common/hmac.c
index 6e46dc28a13..d40026d3e99 100644
--- a/src/common/hmac.c
+++ b/src/common/hmac.c
@@ -38,9 +38,7 @@
#define FREE(ptr) free(ptr)
#endif
-/*
- * Internal structure for pg_hmac_ctx->data with this implementation.
- */
+/* Internal pg_hmac_ctx structure */
struct pg_hmac_ctx
{
pg_cryptohash_ctx *hash;
diff --git a/src/common/hmac_openssl.c b/src/common/hmac_openssl.c
index d2cb5474bb9..7efa90c99e6 100644
--- a/src/common/hmac_openssl.c
+++ b/src/common/hmac_openssl.c
@@ -50,9 +50,7 @@
#define FREE(ptr) free(ptr)
#endif /* FRONTEND */
-/*
- * Internal structure for pg_hmac_ctx->data with this implementation.
- */
+/* Internal pg_hmac_ctx structure */
struct pg_hmac_ctx
{
HMAC_CTX *hmacctx;