Skip to content

Commit

Permalink
Fix incorrect comments in hmac.c and hmac_openssl.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
michaelpq committed Jan 13, 2022
1 parent 41ee68a commit 3c1ffd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/common/hmac.c
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/common/hmac_openssl.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3c1ffd0

Please sign in to comment.