Skip to content

Commit e9884e9

Browse files
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 <sebastien.flaesch@4js.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/DBAP191MB12895BFFEC4B5FE0460D0F2FB0459@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM Backpatch-through: 11, all supported versions
1 parent ae85fb8 commit e9884e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8692,6 +8692,8 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
86928692
that the <literal>libssl</literal> and/or <literal>libcrypto</literal> libraries
86938693
have been initialized by your application, so that
86948694
<application>libpq</application> will not also initialize those libraries.
8695+
However, this is unnecessary when using <productname>OpenSSL</productname>
8696+
version 1.1.0 or later, as duplicate initializations are no longer problematic.
86958697
</para>
86968698

86978699
<para>

0 commit comments

Comments
 (0)