Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd80f2ce

Browse files
Support SSL_R_VERSION_TOO_LOW when using LibreSSL
The SSL_R_VERSION_TOO_LOW error reason is supported in LibreSSL sinceLibreSSL 3.6.3, shipped in OpenBSD 7.2. SSL_R_VERSION_TOO_HIGH is onthe other hand not supported in any version of LibreSSL. Previouslywe only checked for SSL_R_VERSION_TOO_HIGH and then applied both underthat guard since OpenSSL has only ever supported both at the same time.This breaks the check into one per reason to allow SSL_R_VERSION_TOO_LOWto work when using LibreSSL.Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/eac70d46-e61c-4d71-a1e1-78e2bfa19485@eisentraut.org
1 parent44e27f0 commitd80f2ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/libpq/be-secure-openssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ be_tls_open_server(Port *port)
547547
caseSSL_R_TLSV1_ALERT_PROTOCOL_VERSION:
548548
#ifdefSSL_R_VERSION_TOO_HIGH
549549
caseSSL_R_VERSION_TOO_HIGH:
550+
#endif
551+
#ifdefSSL_R_VERSION_TOO_LOW
550552
caseSSL_R_VERSION_TOO_LOW:
551553
#endif
552554
give_proto_hint= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp