mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +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:
parent
830d1c73b3
commit
e75b1e3371
@ -1867,24 +1867,6 @@ char *PQpass(const PGconn *conn);
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="libpq-PQsslpassword">
|
|
||||||
<term><function>PQsslpassword</function><indexterm><primary>PQsslpassword</primary></indexterm></term>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Returns the password for the SSL client key.
|
|
||||||
<synopsis>
|
|
||||||
char *PQsslpassword(const PGconn *conn);
|
|
||||||
</synopsis>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
<xref linkend="libpq-PQsslpassword"/> will return the SSL password specified
|
|
||||||
in the connection parameters.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry id="libpq-PQhost">
|
<varlistentry id="libpq-PQhost">
|
||||||
<term><function>PQhost</function><indexterm><primary>PQhost</primary></indexterm></term>
|
<term><function>PQhost</function><indexterm><primary>PQhost</primary></indexterm></term>
|
||||||
|
|
||||||
|
@ -176,7 +176,6 @@ PQresultMemorySize 173
|
|||||||
PQhostaddr 174
|
PQhostaddr 174
|
||||||
PQgssEncInUse 175
|
PQgssEncInUse 175
|
||||||
PQgetgssctx 176
|
PQgetgssctx 176
|
||||||
PQsslpassword 177
|
PQsetSSLKeyPassHook 177
|
||||||
PQsetSSLKeyPassHook 178
|
PQgetSSLKeyPassHook 178
|
||||||
PQgetSSLKeyPassHook 179
|
PQdefaultSSLKeyPassHook 179
|
||||||
PQdefaultSSLKeyPassHook 180
|
|
||||||
|
@ -6550,14 +6550,6 @@ PQport(const PGconn *conn)
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
|
||||||
PQsslpassword(const PGconn *conn)
|
|
||||||
{
|
|
||||||
if (!conn)
|
|
||||||
return NULL;
|
|
||||||
return conn->sslpassword;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
PQtty(const PGconn *conn)
|
PQtty(const PGconn *conn)
|
||||||
{
|
{
|
||||||
|
@ -317,7 +317,6 @@ extern char *PQpass(const PGconn *conn);
|
|||||||
extern char *PQhost(const PGconn *conn);
|
extern char *PQhost(const PGconn *conn);
|
||||||
extern char *PQhostaddr(const PGconn *conn);
|
extern char *PQhostaddr(const PGconn *conn);
|
||||||
extern char *PQport(const PGconn *conn);
|
extern char *PQport(const PGconn *conn);
|
||||||
extern char *PQsslpassword(const PGconn *conn);
|
|
||||||
extern char *PQtty(const PGconn *conn);
|
extern char *PQtty(const PGconn *conn);
|
||||||
extern char *PQoptions(const PGconn *conn);
|
extern char *PQoptions(const PGconn *conn);
|
||||||
extern ConnStatusType PQstatus(const PGconn *conn);
|
extern ConnStatusType PQstatus(const PGconn *conn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user