summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan2019-12-07 14:20:53 +0000
committerAndrew Dunstan2019-12-07 14:20:53 +0000
commite75b1e33710249d1699850920c0390fb08ea5673 (patch)
treeaa57914b49d3c0f1a7b1539438be373c3bca8620 /src
parent830d1c73b3f4524bc897ddab5c6c3b47840c915a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/exports.txt7
-rw-r--r--src/interfaces/libpq/fe-connect.c8
-rw-r--r--src/interfaces/libpq/libpq-fe.h1
3 files changed, 3 insertions, 13 deletions
diff --git a/src/interfaces/libpq/exports.txt b/src/interfaces/libpq/exports.txt
index 53f8ee0fc4b..5fc1e5d2894 100644
--- a/src/interfaces/libpq/exports.txt
+++ b/src/interfaces/libpq/exports.txt
@@ -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
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 5c786360a96..66a91286056 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -6551,14 +6551,6 @@ PQport(const PGconn *conn)
}
char *
-PQsslpassword(const PGconn *conn)
-{
- if (!conn)
- return NULL;
- return conn->sslpassword;
-}
-
-char *
PQtty(const PGconn *conn)
{
if (!conn)
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index f39db7780c3..75608dd92d9 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -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);