forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4e4f7b9
committed
Adjust PQsslAttributeNames() to match PQsslAttribute().
Currently, PQsslAttributeNames() returns the same list of attributenames regardless of its conn parameter. This patch changes it tohave behavior parallel to what80a0567 installed for PQsslAttribute:you get OpenSSL's attributes if conn is NULL or is an SSL-encryptedconnection, or an empty list if conn is a non-encrypted connection.The point of this is to have sensible connection-dependent behaviorin case we ever support multiple SSL libraries. The behavior forNULL can be defined as "the attributes for the default SSL library",parallel to what PQsslAttribute(NULL, "library") does.Since this is mostly just future-proofing, no back-patch.Discussion:https://postgr.es/m/17625-fc47c78b7d71b534@postgresql.org1 parent69298db commit4e4f7b9
File tree
2 files changed
+24
-3
lines changed- doc/src/sgml
- src/interfaces/libpq
2 files changed
+24
-3
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2590 | 2590 |
| |
2591 | 2591 |
| |
2592 | 2592 |
| |
2593 |
| - | |
| 2593 | + | |
| 2594 | + | |
2594 | 2595 |
| |
2595 | 2596 |
| |
2596 | 2597 |
| |
2597 | 2598 |
| |
2598 | 2599 |
| |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2599 | 2609 |
| |
2600 | 2610 |
| |
2601 | 2611 |
| |
|
Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1730 | 1730 |
| |
1731 | 1731 |
| |
1732 | 1732 |
| |
1733 |
| - | |
| 1733 | + | |
1734 | 1734 |
| |
1735 | 1735 |
| |
1736 | 1736 |
| |
1737 | 1737 |
| |
1738 | 1738 |
| |
1739 | 1739 |
| |
1740 | 1740 |
| |
| 1741 | + | |
1741 | 1742 |
| |
1742 |
| - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1743 | 1754 |
| |
1744 | 1755 |
| |
1745 | 1756 |
| |
|
0 commit comments
Comments
(0)