forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38698dd
committed
Unwind #if spaghetti in hmac_openssl.c a bit.
Make this code a little less confusing by defining a separate macrothat controls whether we'll use ResourceOwner facilities to trackthe existence of a pg_hmac_ctx context.The proximate reason to touch this is that sinceb8bff07, we got"unused function" warnings if building with older OpenSSL, becausethe #if guards around the ResourceOwner wrapper function definitionswere different from those around the calls of those functions.Pulling the ResourceOwner machinations outside of the #ifdef HAVE_xxxguards fixes that and makes the code clearer too.Discussion:https://postgr.es/m/1394271.1712016101@sss.pgh.pa.us1 parentcafe105 commit38698dd
1 file changed
+18
-14
lines changedLines changed: 18 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
70 |
| - | |
| 71 | + | |
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
76 |
| - | |
| 77 | + | |
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| |||
138 | 139 |
| |
139 | 140 |
| |
140 | 141 |
| |
141 |
| - | |
142 |
| - | |
| 142 | + | |
| 143 | + | |
143 | 144 |
| |
144 | 145 |
| |
| 146 | + | |
| 147 | + | |
145 | 148 |
| |
146 | 149 |
| |
147 | 150 |
| |
| |||
159 | 162 |
| |
160 | 163 |
| |
161 | 164 |
| |
162 |
| - | |
163 |
| - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
164 | 170 |
| |
165 | 171 |
| |
166 | 172 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 | 173 |
| |
171 | 174 |
| |
172 | 175 |
| |
| |||
327 | 330 |
| |
328 | 331 |
| |
329 | 332 |
| |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 | 333 |
| |
335 | 334 |
| |
336 | 335 |
| |
337 | 336 |
| |
338 | 337 |
| |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 |
| |
340 | 344 |
| |
341 | 345 |
| |
| |||
375 | 379 |
| |
376 | 380 |
| |
377 | 381 |
| |
378 |
| - | |
| 382 | + | |
379 | 383 |
| |
380 | 384 |
| |
381 | 385 |
| |
|
0 commit comments
Comments
(0)