mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Better document PQinitSSL(0) behavior in regards to libcrypto.
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.119 2009/01/28 15:06:47 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.120 2009/03/28 01:36:11 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -870,6 +870,7 @@ init_ssl_system(PGconn *conn)
|
||||
|
||||
if (ssl_open_connections++ == 0)
|
||||
{
|
||||
/* This is actually libcrypto, not libssl. */
|
||||
/* These are only required for threaded SSL applications */
|
||||
CRYPTO_set_id_callback(pq_threadidcallback);
|
||||
CRYPTO_set_locking_callback(pq_lockingcallback);
|
||||
@ -934,6 +935,7 @@ destroy_ssl_system(void)
|
||||
|
||||
if (ssl_open_connections == 0)
|
||||
{
|
||||
/* This is actually libcrypto, not libssl. */
|
||||
/* No connections left, unregister all callbacks */
|
||||
CRYPTO_set_locking_callback(NULL);
|
||||
CRYPTO_set_id_callback(NULL);
|
||||
|
Reference in New Issue
Block a user