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/8cbb56dd-63d6-a581-7a65-25a97ac4be03@postgrespro.ru
Backpatch-through: 14
pull/76/head
Michael Paquier 4 years ago
parent db6736c93c
commit 87f29f4fcc
  1. 4
      src/common/hmac.c
  2. 4
      src/common/hmac_openssl.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;

@ -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;

Loading…
Cancel
Save