From: Daniel Gustafsson Date: Fri, 14 Apr 2023 08:15:50 +0000 (+0200) Subject: doc: PQinitOpenSSL and PQinitSSL are obsolete in OpenSSL 1.1.0+ X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=928e05ddfd4031c67e101c5e74dbb5c8ec4f9e23;p=postgresql-pgindent.git doc: PQinitOpenSSL and PQinitSSL are obsolete in OpenSSL 1.1.0+ Starting with OpenSSL 1.1.0 there is no need to call PQinitOpenSSL or PQinitSSL to avoid duplicate initialization of OpenSSL. Add a note to the documentation to explain this. Backpatch to all supported versions as older OpenSSL versions are equally likely to be used for all branches. Reported-by: Sebastien Flaesch Reviewed-by: Tom Lane Discussion: https://postgr.es/m/DBAP191MB12895BFFEC4B5FE0460D0F2FB0459@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM Backpatch-through: 11, all supported versions --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index b8702284d0..27fe22de95 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -9041,6 +9041,8 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*) that the libssl and/or libcrypto libraries have been initialized by your application, so that libpq will not also initialize those libraries. + However, this is unnecessary when using OpenSSL + version 1.1.0 or later, as duplicate initializations are no longer problematic.