forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit41aadee
committed
Add GUC checks for ssl_min_protocol_version and ssl_max_protocol_version
Mixing incorrect bounds set in the SSL context leads to confusing errormessages generated by OpenSSL which are hard to act on. New checks areadded within the GUC machinery to improve the user experience as theyapply to any SSL implementation, not only OpenSSL, and doing the checksbeforehand avoids the creation of a SSL during a reload (or startup)which we know will never be used anyway.Backpatch down to 12, as those parameters have been introduced bye73e67c.Author: Michael PaquierReviewed-by: Daniel GustafssonDiscussion:https://postgr.es/m/20200114035420.GE1515@paquier.xyzBackpatch-through: 121 parent4b754d6 commit41aadee
2 files changed
+68
-3
lines changedLines changed: 49 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 |
| |
208 | 212 |
| |
209 | 213 |
| |
| |||
4594 | 4598 |
| |
4595 | 4599 |
| |
4596 | 4600 |
| |
4597 |
| - | |
| 4601 | + | |
4598 | 4602 |
| |
4599 | 4603 |
| |
4600 | 4604 |
| |
| |||
4606 | 4610 |
| |
4607 | 4611 |
| |
4608 | 4612 |
| |
4609 |
| - | |
| 4613 | + | |
4610 | 4614 |
| |
4611 | 4615 |
| |
4612 | 4616 |
| |
| |||
11603 | 11607 |
| |
11604 | 11608 |
| |
11605 | 11609 |
| |
| 11610 | + | |
| 11611 | + | |
| 11612 | + | |
| 11613 | + | |
| 11614 | + | |
| 11615 | + | |
| 11616 | + | |
| 11617 | + | |
| 11618 | + | |
| 11619 | + | |
| 11620 | + | |
| 11621 | + | |
| 11622 | + | |
| 11623 | + | |
| 11624 | + | |
| 11625 | + | |
| 11626 | + | |
| 11627 | + | |
| 11628 | + | |
| 11629 | + | |
| 11630 | + | |
| 11631 | + | |
| 11632 | + | |
| 11633 | + | |
| 11634 | + | |
| 11635 | + | |
| 11636 | + | |
| 11637 | + | |
| 11638 | + | |
| 11639 | + | |
| 11640 | + | |
| 11641 | + | |
| 11642 | + | |
| 11643 | + | |
| 11644 | + | |
| 11645 | + | |
| 11646 | + | |
| 11647 | + | |
| 11648 | + | |
| 11649 | + | |
| 11650 | + | |
| 11651 | + | |
| 11652 | + | |
11606 | 11653 |
| |
11607 | 11654 |
| |
11608 | 11655 |
| |
|
Lines changed: 19 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
100 | 118 |
| |
101 | 119 |
| |
102 | 120 |
| |
|
0 commit comments
Comments
(0)