Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite75b1e3

Browse files
committed
Remove PQsslpassword function
This partially reverts commit4dc6355.The information returned by the function can be obtained by callingPQconninfo(), so the function is redundant.
1 parent830d1c7 commite75b1e3

File tree

4 files changed

+3
-31
lines changed

4 files changed

+3
-31
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,24 +1867,6 @@ char *PQpass(const PGconn *conn);
18671867
</listitem>
18681868
</varlistentry>
18691869

1870-
<varlistentry id="libpq-PQsslpassword">
1871-
<term><function>PQsslpassword</function><indexterm><primary>PQsslpassword</primary></indexterm></term>
1872-
1873-
<listitem>
1874-
<para>
1875-
Returns the password for the SSL client key.
1876-
<synopsis>
1877-
char *PQsslpassword(const PGconn *conn);
1878-
</synopsis>
1879-
</para>
1880-
1881-
<para>
1882-
<xref linkend="libpq-PQsslpassword"/> will return the SSL password specified
1883-
in the connection parameters.
1884-
</para>
1885-
</listitem>
1886-
</varlistentry>
1887-
18881870
<varlistentry id="libpq-PQhost">
18891871
<term><function>PQhost</function><indexterm><primary>PQhost</primary></indexterm></term>
18901872

‎src/interfaces/libpq/exports.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ PQresultMemorySize 173
176176
PQhostaddr 174
177177
PQgssEncInUse 175
178178
PQgetgssctx 176
179-
PQsslpassword 177
180-
PQsetSSLKeyPassHook 178
181-
PQgetSSLKeyPassHook 179
182-
PQdefaultSSLKeyPassHook 180
179+
PQsetSSLKeyPassHook 177
180+
PQgetSSLKeyPassHook 178
181+
PQdefaultSSLKeyPassHook 179

‎src/interfaces/libpq/fe-connect.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6550,14 +6550,6 @@ PQport(const PGconn *conn)
65506550
return"";
65516551
}
65526552

6553-
char*
6554-
PQsslpassword(constPGconn*conn)
6555-
{
6556-
if (!conn)
6557-
returnNULL;
6558-
returnconn->sslpassword;
6559-
}
6560-
65616553
char*
65626554
PQtty(constPGconn*conn)
65636555
{

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ extern char *PQpass(const PGconn *conn);
317317
externchar*PQhost(constPGconn*conn);
318318
externchar*PQhostaddr(constPGconn*conn);
319319
externchar*PQport(constPGconn*conn);
320-
externchar*PQsslpassword(constPGconn*conn);
321320
externchar*PQtty(constPGconn*conn);
322321
externchar*PQoptions(constPGconn*conn);
323322
externConnStatusTypePQstatus(constPGconn*conn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp