forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit91044ae
committed
Send ALPN in TLS handshake, require it in direct SSL connections
libpq now always tries to send ALPN. With the traditional negotiatedSSL connections, the server accepts the ALPN, and refuses theconnection if it's not what we expect, but connecting without ALPN isstill OK. With the new direct SSL connections, ALPN is mandatory.NOTE: This uses "TBD-pgsql" as the protocol ID. We must register aproper one with IANA before the release!Author: Greg Stark, Heikki LinnakangasReviewed-by: Matthias van de Meent, Jacob Champion1 parentd39a49c commit91044ae
File tree
7 files changed
+157
-2
lines changed- doc/src/sgml
- src
- backend
- libpq
- tcop
- bin/psql
- include/libpq
- interfaces/libpq
7 files changed
+157
-2
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2944 | 2944 |
| |
2945 | 2945 |
| |
2946 | 2946 |
| |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2947 | 2959 |
| |
2948 | 2960 |
| |
2949 | 2961 |
| |
|
Lines changed: 77 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 |
| |
71 | 77 |
| |
72 | 78 |
| |
| |||
432 | 438 |
| |
433 | 439 |
| |
434 | 440 |
| |
| 441 | + | |
| 442 | + | |
| 443 | + | |
435 | 444 |
| |
436 | 445 |
| |
437 | 446 |
| |
| |||
571 | 580 |
| |
572 | 581 |
| |
573 | 582 |
| |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
574 | 609 |
| |
575 | 610 |
| |
576 | 611 |
| |
| |||
1259 | 1294 |
| |
1260 | 1295 |
| |
1261 | 1296 |
| |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1262 | 1339 |
| |
1263 | 1340 |
| |
1264 | 1341 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
410 | 418 |
| |
411 | 419 |
| |
412 | 420 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3882 | 3882 |
| |
3883 | 3883 |
| |
3884 | 3884 |
| |
| 3885 | + | |
3885 | 3886 |
| |
3886 | 3887 |
| |
3887 | 3888 |
| |
3888 | 3889 |
| |
3889 | 3890 |
| |
3890 | 3891 |
| |
3891 | 3892 |
| |
| 3893 | + | |
3892 | 3894 |
| |
3893 |
| - | |
| 3895 | + | |
3894 | 3896 |
| |
3895 | 3897 |
| |
3896 |
| - | |
| 3898 | + | |
| 3899 | + | |
3897 | 3900 |
| |
3898 | 3901 |
| |
3899 | 3902 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
| 206 | + | |
206 | 207 |
| |
207 | 208 |
| |
208 | 209 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
142 | 161 |
| |
143 | 162 |
| |
144 | 163 |
| |
|
Lines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| 888 | + | |
| 889 | + | |
| 890 | + | |
888 | 891 |
| |
889 | 892 |
| |
890 | 893 |
| |
| |||
1233 | 1236 |
| |
1234 | 1237 |
| |
1235 | 1238 |
| |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1236 | 1255 |
| |
1237 | 1256 |
| |
1238 | 1257 |
| |
| |||
1754 | 1773 |
| |
1755 | 1774 |
| |
1756 | 1775 |
| |
| 1776 | + | |
1757 | 1777 |
| |
1758 | 1778 |
| |
1759 | 1779 |
| |
| |||
1808 | 1828 |
| |
1809 | 1829 |
| |
1810 | 1830 |
| |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1811 | 1846 |
| |
1812 | 1847 |
| |
1813 | 1848 |
| |
|
0 commit comments
Comments
(0)