forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7d0bcb0
committed
Fix handling of OpenSSL's SSL_clear_options
This function is supported down to OpenSSL 0.9.8, which is the oldestversion supported since 593d4e4 (from Postgres 10 onwards), and is usedsincee3bdb2d (from 11 onwards). It is defined as a macro from OpenSSL0.9.8 to 1.0.2, and as a function in 1.1.0 and newer versions. However,the configure check present is only adapted for functions. So, even ifthe code would be able to compile, configure fails to detect the macro,causing it to be ignored when compiling the code with OpenSSL from 0.9.8to 1.0.2.The code needs a configure check as pera364dfa, which has fixed acompilation issue with a past version of LibreSSL in NetBSD 5.1. OnHEAD, just remove the configure check as the last release of NetBSD 5 isfrom 2014 (and we have no more buildfarm members for it). In 11 and 12,improve the configure logic so as both macros and functions arecorrectly detected. This makes NetBSD 5 still work on already-releasedbranches, but not for 13 onwards.The patch for HEAD is from me, and Daniel has written the version to usefor the back-branches.Author: Michael Paquier, Daniel GustaffsonReviewed-by: Tom LaneDiscussion:https://postgr.es/m/20191205083252.GE5064@paquier.xyzDiscussion:https://postgr.es/m/98F7F99E-1129-41D8-B86B-FE3B1E286881@yesql.seBackpatch-through: 111 parent690c880 commit7d0bcb0
File tree
5 files changed
+7
-21
lines changed- src
- include
- interfaces/libpq
5 files changed
+7
-21
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12094 | 12094 |
| |
12095 | 12095 |
| |
12096 | 12096 |
| |
12097 |
| - | |
| 12097 | + | |
| 12098 | + | |
12098 | 12099 |
| |
12099 |
| - | |
12100 |
| - | |
12101 |
| - | |
| 12100 | + | |
| 12101 | + | |
12102 | 12102 |
| |
12103 |
| - | |
| 12103 | + | |
12104 | 12104 |
| |
12105 | 12105 |
| |
12106 | 12106 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 |
| - | |
| 1189 | + | |
| 1190 | + | |
1190 | 1191 |
| |
1191 | 1192 |
| |
1192 | 1193 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 | 515 |
| |
519 | 516 |
| |
520 | 517 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 | 373 |
| |
377 | 374 |
| |
378 | 375 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1198 | 1198 |
| |
1199 | 1199 |
| |
1200 | 1200 |
| |
1201 |
| - | |
1202 |
| - | |
1203 |
| - | |
1204 |
| - | |
1205 |
| - | |
1206 |
| - | |
1207 |
| - | |
1208 |
| - | |
1209 | 1201 |
| |
1210 | 1202 |
| |
1211 |
| - | |
1212 | 1203 |
| |
1213 | 1204 |
| |
1214 | 1205 |
| |
|
0 commit comments
Comments
(0)