diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-04-02 10:41:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-04-02 10:41:44 -0400 |
commit | 38698dd38e56b6de31545ac284e36feb00d413cb (patch) | |
tree | 8ac48219001252f8187731798bdc9303a8e9aae1 /src/tutorial | |
parent | cafe1056558fe07cdc52b95205588fcd80870362 (diff) | |
download | postgresql-38698dd38e56b6de31545ac284e36feb00d413cb.tar.gz postgresql-38698dd38e56b6de31545ac284e36feb00d413cb.zip |
Unwind #if spaghetti in hmac_openssl.c a bit.
Make this code a little less confusing by defining a separate macro
that controls whether we'll use ResourceOwner facilities to track
the existence of a pg_hmac_ctx context.
The proximate reason to touch this is that since b8bff07da, we got
"unused function" warnings if building with older OpenSSL, because
the #if guards around the ResourceOwner wrapper function definitions
were different from those around the calls of those functions.
Pulling the ResourceOwner machinations outside of the #ifdef HAVE_xxx
guards fixes that and makes the code clearer too.
Discussion: https://postgr.es/m/1394271.1712016101@sss.pgh.pa.us
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions