Arrange for the authentication request type to be preserved in
Joe Conway <mail@joeconway.com>
Arrange for the authentication request type to be preserved in PGconn. Invent a new libpq connection-status function, PQconnectionUsedPassword() that returns true if the server demanded a password during authentication, false otherwise. This may be useful to clients in general, but is immediately useful to help plug a privilege escalation path in dblink. Per list discussion and design proposed by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +15 −1 |
| src/include/libpq/pqcomm.h | modified | +2 −1 |
| src/interfaces/libpq/exports.txt | modified | +2 −1 |
| src/interfaces/libpq/fe-connect.c | modified | +17 −1 |
| src/interfaces/libpq/libpq-fe.h | modified | +4 −2 |
| src/interfaces/libpq/libpq-int.h | modified | +2 −1 |