]> granicus.if.org Git - postgresql/commit
Arrange for the authentication request type to be preserved in
authorJoe Conway <mail@joeconway.com>
Sun, 8 Jul 2007 17:11:51 +0000 (17:11 +0000)
committerJoe Conway <mail@joeconway.com>
Sun, 8 Jul 2007 17:11:51 +0000 (17:11 +0000)
commit51bc3dfe4bda37a452b0d8b70b66929fa94c4f1f
tree3027376eb362cedba1a795cbf3452fb2f4cc7893
parent8c69d881cea15b9c9a887a9d425c234d4ce71d8d
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.
doc/src/sgml/libpq.sgml
src/include/libpq/pqcomm.h
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h