Fix incorrect comments in hmac.c and hmac_openssl.c
authorMichael Paquier
Thu, 13 Jan 2022 00:43:44 +0000 (09:43 +0900)
committerMichael Paquier
Thu, 13 Jan 2022 00:43:44 +0000 (09:43 +0900)
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/8cbb56dd-63d6-a581-7a65-25a97ac4be03@postgrespro.ru
Backpatch-through: 14

src/common/hmac.c
src/common/hmac_openssl.c

index bfe2e7cb5e9d2898cb76f912317772e197170e32..1af7276ddcb1b6ca545e929e7c6e6f9db5546ee8 100644 (file)
@@ -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;
index 1acf59476eb3fb6bfd9b866075a19dab331351b0..95b494400ab7b8d5fe33a7f07598c731f10a4619 100644 (file)
@@ -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;