]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add hints about protocol-version-related SSL connection failures.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 27 Jun 2020 16:47:58 +0000 (12:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 27 Jun 2020 16:47:58 +0000 (12:47 -0400)
commite2bcd99be18c67fea575a9789ebafd650e6e1076
treee5db5c3e9606964bb4ec6e2d77c56a05492c53c7
parent16412c78403e8ebcb06e34ac1eb74ff8dd299495
Add hints about protocol-version-related SSL connection failures.

OpenSSL's native reports about problems related to protocol version
restrictions are pretty opaque and inconsistent.  When we get an
SSL error that is plausibly due to this, emit a hint message that
includes the range of SSL protocol versions we (think we) are
allowing.  This should at least get the user thinking in the right
direction to resolve the problem, even if the hint isn't totally
accurate, which it might not be for assorted reasons.

Back-patch to v13 where we increased the default minimum protocol
version, thereby increasing the risk of this class of failure.

Patch by me, reviewed by Daniel Gustafsson

Discussion: https://postgr.es/m/a9408304-4381-a5af-d259-e55d349ae4ce@2ndquadrant.com
src/backend/libpq/be-secure-openssl.c
src/include/common/openssl.h
src/interfaces/libpq/fe-secure-openssl.c