1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Remove PQsslpassword function

This partially reverts commit 4dc6355210.

The information returned by the function can be obtained by calling
PQconninfo(), so the function is redundant.
This commit is contained in:
Andrew Dunstan
2019-12-07 09:20:53 -05:00
parent 830d1c73b3
commit e75b1e3371
4 changed files with 3 additions and 31 deletions

View File

@ -176,7 +176,6 @@ PQresultMemorySize 173
PQhostaddr 174
PQgssEncInUse 175
PQgetgssctx 176
PQsslpassword 177
PQsetSSLKeyPassHook 178
PQgetSSLKeyPassHook 179
PQdefaultSSLKeyPassHook 180
PQsetSSLKeyPassHook 177
PQgetSSLKeyPassHook 178
PQdefaultSSLKeyPassHook 179

View File

@ -6550,14 +6550,6 @@ PQport(const PGconn *conn)
return "";
}
char *
PQsslpassword(const PGconn *conn)
{
if (!conn)
return NULL;
return conn->sslpassword;
}
char *
PQtty(const PGconn *conn)
{

View File

@ -317,7 +317,6 @@ extern char *PQpass(const PGconn *conn);
extern char *PQhost(const PGconn *conn);
extern char *PQhostaddr(const PGconn *conn);
extern char *PQport(const PGconn *conn);
extern char *PQsslpassword(const PGconn *conn);
extern char *PQtty(const PGconn *conn);
extern char *PQoptions(const PGconn *conn);
extern ConnStatusType PQstatus(const PGconn *conn);