| The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide
by The PostgreSQL Global Development Group Paperback (6"x9"), 478 pages ISBN 9781906966065 RRP £14.95 ($19.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
1.17.5 SSL library initialization
If your application initializes libssl and/or
libcrypto libraries and libpq
is built with SSL support, you should call
PQinitOpenSSL to tell libpq
that the libssl and/or libcrypto libraries
have been initialized by your application, so that
libpq will not also initialize those libraries.
See http://h71000.www7.hp.com/doc/83final/BA554_90007/ch04.html
for details on the SSL API.
PQinitOpenSSL-
Allows applications to select which security libraries to initialize.
void PQinitOpenSSL(int do_ssl, int do_crypto);
Whendo_sslis non-zero, libpq will initialize the OpenSSL library before first opening a database connection. Whendo_cryptois non-zero, thelibcryptolibrary will be initialized. By default (ifPQinitOpenSSLis not called), both libraries are initialized. When SSL support is not compiled in, this function is present but does nothing. If your application uses and initializes either OpenSSL or its underlyinglibcryptolibrary, you must call this function with zeroes for the appropriate parameter(s) before first opening a database connection. Also be sure that you have done that initialization before opening a database connection. PQinitSSL-
Allows applications to select which security libraries to initialize.
void PQinitSSL(int do_ssl);
This function is equivalent toPQinitOpenSSL(do_ssl, do_ssl). It is sufficient for applications that initialize both or neither of OpenSSL andlibcrypto.PQinitSSLhas been present since PostgreSQL 8.0, whilePQinitOpenSSLwas added in PostgreSQL 8.4, soPQinitSSLmight be preferable for applications that need to work with older versions of libpq.
| ISBN 9781906966065 | The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide | See the print edition |