forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit705843d
committed
Enhance libpq encryption negotiation tests with new GUC
The new "log_connection_negotiation" server option causes the serverto print messages to the log when it receives a SSLRequest orGSSENCRequest packet from the client. Together with "log_connections",it gives a trace of how a connection and encryption isnegotiatated. Use the option in the libpq_encryption test, to verifyin more detail how libpq negotiates encryption with differentgssencmode and sslmode options.This revealed a couple of cases where libpq retries encryption orauthentication, when it should already know that it cannot succeed. Imarked them with XXX comments in the test tables. They only happenwhen the connection was going to fail anyway, and only with rarecombinations of options, so they're not serious.Discussion:https://www.postgresql.org/message-id/CAEze2Wja8VUoZygCepwUeiCrWa4jP316k0mvJrOW4PFmWP0Tcw@mail.gmail.com1 parent20f9b61 commit705843d
File tree
3 files changed
+255
-159
lines changed- src
- backend
- tcop
- utils/misc
- test/libpq_encryption/t
3 files changed
+255
-159
lines changedLines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 |
| |
41 | 44 |
| |
42 | 45 |
| |
| |||
474 | 477 |
| |
475 | 478 |
| |
476 | 479 |
| |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
477 | 490 |
| |
478 | 491 |
| |
479 | 492 |
| |
| |||
519 | 532 |
| |
520 | 533 |
| |
521 | 534 |
| |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
522 | 545 |
| |
523 | 546 |
| |
524 | 547 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| 99 | + | |
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
| |||
1224 | 1225 |
| |
1225 | 1226 |
| |
1226 | 1227 |
| |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1227 | 1238 |
| |
1228 | 1239 |
| |
1229 | 1240 |
| |
|
0 commit comments
Comments
(0)