Commit 4e6f101
committed
Fix compilation with older OpenSSL versions
Some older OpenSSL versions (0.9.8 branch) define TLS*_VERSION macros
but not the corresponding SSL_OP_NO_* macro, which causes the code for
handling ssl_min_protocol_version/ssl_max_protocol_version to fail to
compile. To fix, add more #ifdefs and error handling.
Reported-by: Victor Wagner <vitus@wagner.pp.ru>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/20190924101859.09383b4f%40fafnir.local.vm1 parent 4ea03f3 commit 4e6f101
1 file changed
+46
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
| |||
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
212 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
| |||
1326 | 1336 | | |
1327 | 1337 | | |
1328 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1329 | 1344 | | |
1330 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
1331 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1332 | 1353 | | |
1333 | 1354 | | |
1334 | 1355 | | |
| 1356 | + | |
| 1357 | + | |
1335 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1336 | 1363 | | |
1337 | 1364 | | |
1338 | 1365 | | |
| |||
1347 | 1374 | | |
1348 | 1375 | | |
1349 | 1376 | | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1350 | 1382 | | |
1351 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
1352 | 1386 | | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1353 | 1391 | | |
1354 | 1392 | | |
1355 | 1393 | | |
| 1394 | + | |
| 1395 | + | |
1356 | 1396 | | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1357 | 1401 | | |
1358 | 1402 | | |
1359 | 1403 | | |
| |||
0 commit comments