@@ -812,7 +812,8 @@ int callback_fn(char *buf, int size, PGconn *conn);
812
812
its path will be in <literal>conn->sslkey</literal> when the callback
813
813
is invoked. This will be empty if the default key path is being used.
814
814
For keys that are engine specifiers, it is up to engine implementations
815
- whether they use the OpenSSL password callback or define their own handling.
815
+ whether they use the <productname>OpenSSL</productname> password
816
+ callback or define their own handling.
816
817
</para>
817
818
818
819
<para>
@@ -1672,13 +1673,15 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
1672
1673
<para>
1673
1674
Specifying this parameter with any non-empty value suppresses the
1674
1675
<literal>Enter PEM pass phrase:</literal>
1675
- prompt that OpenSSL will emit by default when an encrypted client
1676
- certificate key is provided to <literal>libpq</literal>.
1676
+ prompt that <productname>OpenSSL</productname> will emit by default
1677
+ when an encrypted client certificate key is provided to
1678
+ <literal>libpq</literal>.
1677
1679
</para>
1678
1680
<para>
1679
- If the key is not encrypted this parameter is ignored. The parameter has no
1680
- effect on keys specified by OpenSSL engines unless the engine uses the
1681
- OpenSSL password callback mechanism for prompts.
1681
+ If the key is not encrypted this parameter is ignored. The parameter
1682
+ has no effect on keys specified by <productname>OpenSSL</productname>
1683
+ engines unless the engine uses the <productname>OpenSSL</productname>
1684
+ password callback mechanism for prompts.
1682
1685
</para>
1683
1686
<para>
1684
1687
There is no environment variable equivalent to this option, and no
@@ -2471,8 +2474,9 @@ void *PQsslStruct(const PGconn *conn, const char *struct_name);
2471
2474
</para>
2472
2475
<para>
2473
2476
The struct(s) available depend on the SSL implementation in use.
2474
- For OpenSSL, there is one struct, available under the name "OpenSSL",
2475
- and it returns a pointer to the OpenSSL <literal>SSL</literal> struct.
2477
+ For <productname>OpenSSL</productname>, there is one struct,
2478
+ available under the name "OpenSSL", and it returns a pointer to the
2479
+ <productname>OpenSSL</productname> <literal>SSL</literal> struct.
2476
2480
To use this function, code along the following lines could be used:
2477
2481
<programlisting><![CDATA[
2478
2482
#include <libpq-fe.h>
@@ -2516,8 +2520,9 @@ void *PQgetssl(const PGconn *conn);
2516
2520
<para>
2517
2521
This function is equivalent to <literal>PQsslStruct(conn, "OpenSSL")</literal>. It should
2518
2522
not be used in new applications, because the returned struct is
2519
- specific to OpenSSL and will not be available if another SSL
2520
- implementation is used. To check if a connection uses SSL, call
2523
+ specific to <productname>OpenSSL</productname> and will not be
2524
+ available if another <acronym>SSL</acronym> implementation is used.
2525
+ To check if a connection uses SSL, call
2521
2526
<xref linkend="libpq-PQsslInUse"/> instead, and for more details about the
2522
2527
connection, use <xref linkend="libpq-PQsslAttribute"/>.
2523
2528
</para>
@@ -7665,15 +7670,17 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
7665
7670
7666
7671
<para>
7667
7672
The key may be
7668
- stored in cleartext or encrypted with a passphrase using any algorithm supported
7669
- by OpenSSL, like AES-128. If the key is stored encrypted, then the passphrase
7670
- may be provided in the <xref linkend="libpq-connect-sslpassword"/> connection
7671
- option. If an encrypted key is supplied and the <literal>sslpassword</literal>
7672
- option is absent or blank, a password will be prompted for interactively by
7673
- OpenSSL with a <literal>Enter PEM pass phrase:</literal>
7674
- prompt if a TTY is available. Applications can override the client certificate
7675
- prompt and the handling of the <literal>sslpassword</literal> parameter by supplying
7676
- their own key password callback; see
7673
+ stored in cleartext or encrypted with a passphrase using any algorithm
7674
+ supported by <productname>OpenSSL</productname>, like AES-128. If the key
7675
+ is stored encrypted, then the passphrase may be provided in the
7676
+ <xref linkend="libpq-connect-sslpassword"/> connection option. If an
7677
+ encrypted key is supplied and the <literal>sslpassword</literal> option
7678
+ is absent or blank, a password will be prompted for interactively by
7679
+ <productname>OpenSSL</productname> with a
7680
+ <literal>Enter PEM pass phrase:</literal> prompt if a TTY is available.
7681
+ Applications can override the client certificate prompt and the handling
7682
+ of the <literal>sslpassword</literal> parameter by supplying their own
7683
+ key password callback; see
7677
7684
<xref linkend="libpq-pqsetsslkeypasshook-openssl"/>.
7678
7685
</para>
7679
7686
@@ -7936,7 +7943,7 @@ void PQinitOpenSSL(int do_ssl, int do_crypto);
7936
7943
7937
7944
<para>
7938
7945
When <parameter>do_ssl</parameter> is non-zero, <application>libpq</application>
7939
- will initialize the <application >OpenSSL</application > library before first
7946
+ will initialize the <productname >OpenSSL</productname > library before first
7940
7947
opening a database connection. When <parameter>do_crypto</parameter> is
7941
7948
non-zero, the <literal>libcrypto</literal> library will be initialized. By
7942
7949
default (if <xref linkend="libpq-PQinitOpenSSL"/> is not called), both libraries
@@ -7945,7 +7952,7 @@ void PQinitOpenSSL(int do_ssl, int do_crypto);
7945
7952
</para>
7946
7953
7947
7954
<para>
7948
- If your application uses and initializes either <application >OpenSSL</application >
7955
+ If your application uses and initializes either <productname >OpenSSL</productname >
7949
7956
or its underlying <literal>libcrypto</literal> library, you <emphasis>must</emphasis>
7950
7957
call this function with zeroes for the appropriate parameter(s)
7951
7958
before first opening a database connection. Also be sure that you
@@ -7967,7 +7974,7 @@ void PQinitSSL(int do_ssl);
7967
7974
This function is equivalent to
7968
7975
<literal>PQinitOpenSSL(do_ssl, do_ssl)</literal>.
7969
7976
It is sufficient for applications that initialize both or neither
7970
- of <application >OpenSSL</application > and <literal>libcrypto</literal>.
7977
+ of <productname >OpenSSL</productname > and <literal>libcrypto</literal>.
7971
7978
</para>
7972
7979
7973
7980
<para>
0 commit comments