#include
This function is equivalent to PQsslStruct(conn, "OpenSSL"). It should
not be used in new applications, because the returned struct is
- specific to OpenSSL and will not be available if another SSL
- implementation is used. To check if a connection uses SSL, call
+ specific to
OpenSSL and will not be
+ available if another
SSL implementation is used.
+ To check if a connection uses SSL, call
instead, and for more details about the
connection, use .
The key may be
- stored in cleartext or encrypted with a passphrase using any algorithm supported
- by OpenSSL, like AES-128. If the key is stored encrypted, then the passphrase
- may be provided in the connection
- option. If an encrypted key is supplied and the sslpassword
- option is absent or blank, a password will be prompted for interactively by
- OpenSSL with a Enter PEM pass phrase:
- prompt if a TTY is available. Applications can override the client certificate
- prompt and the handling of the sslpassword parameter by supplying
- their own key password callback; see
+ stored in cleartext or encrypted with a passphrase using any algorithm
+ supported by
OpenSSL, like AES-128. If the key
+ is stored encrypted, then the passphrase may be provided in the
+ connection option. If an
+ encrypted key is supplied and the sslpassword option
+ is absent or blank, a password will be prompted for interactively by
+ Enter PEM pass phrase: prompt if a TTY is available.
+ Applications can override the client certificate prompt and the handling
+ of the sslpassword parameter by supplying their own
+ key password callback; see
.
When
do_ssl is non-zero,
libpq
- will initialize the <application>OpenSSL> library before first
+ will initialize the <productname>OpenSSL> library before first
opening a database connection. When
do_crypto is
non-zero, the libcrypto library will be initialized. By
default (if is not called), both libraries
- If your application uses and initializes either <application>OpenSSL>
+ If your application uses and initializes either <productname>OpenSSL>
or its underlying libcrypto library, you must
call this function with zeroes for the appropriate parameter(s)
before first opening a database connection. Also be sure that you
This function is equivalent to
PQinitOpenSSL(do_ssl, do_ssl).
It is sufficient for applications that initialize both or neither
- of <application>OpenSSL> and libcrypto.
+ of <productname>OpenSSL> and libcrypto.