Re: lippq client library and openssl initialization: PQinitOpenSSL()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastien Flaesch <sebastien(dot)flaesch(at)4js(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: lippq client library and openssl initialization: PQinitOpenSSL()
Date: 2022-09-11 15:08:00
Message-ID: 816006.1662908880@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sebastien Flaesch <sebastien(dot)flaesch(at)4js(dot)com> writes:
> The PostgreSQL doc says that if the application code is initializing OpenSSL, it should tell PostgreSQL libpq client library that OpenSSL initialization is already done:
> https://www.postgresql.org/docs/14/libpq-ssl.html#LIBPQ-SSL-INITIALIZE
> I was wondering if this is still true with OpenSSL 1.1.0+

Don't believe so. The HAVE_CRYPTO_LOCK stuff is all obsolete and
not compiled if you built against 1.1.0. The only thing left that
will happen if you don't call PQinitOpenSSL is an extra call to
OPENSSL_init_ssl, which should be harmless as far as I can see
from the OpenSSL docs.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Junwang Zhao 2022-09-11 15:40:03 Re: [EXT] Re: log_min_messages = warning
Previous Message Jeffrey Walton 2022-09-11 13:58:12 Re: lippq client library and openssl initialization: PQinitOpenSSL()