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

Commite1cc25f

Browse files
committed
Fix list of SSL error codes for older OpenSSL versions.
Apparently 1.0.1 lacks SSL_R_VERSION_TOO_HIGH andSSL_R_VERSION_TOO_LOW. Per buildfarm.
1 parentb63dd3d commite1cc25f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,13 @@ be_tls_open_server(Port *port)
474474
caseSSL_R_UNKNOWN_PROTOCOL:
475475
caseSSL_R_UNKNOWN_SSL_VERSION:
476476
caseSSL_R_UNSUPPORTED_SSL_VERSION:
477-
caseSSL_R_VERSION_TOO_HIGH:
478-
caseSSL_R_VERSION_TOO_LOW:
479477
caseSSL_R_WRONG_SSL_VERSION:
480478
caseSSL_R_WRONG_VERSION_NUMBER:
481479
caseSSL_R_TLSV1_ALERT_PROTOCOL_VERSION:
480+
#ifdefSSL_R_VERSION_TOO_HIGH
481+
caseSSL_R_VERSION_TOO_HIGH:
482+
caseSSL_R_VERSION_TOO_LOW:
483+
#endif
482484
give_proto_hint= true;
483485
break;
484486
default:

‎src/interfaces/libpq/fe-secure-openssl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,11 +1326,13 @@ open_client_SSL(PGconn *conn)
13261326
caseSSL_R_UNKNOWN_PROTOCOL:
13271327
caseSSL_R_UNKNOWN_SSL_VERSION:
13281328
caseSSL_R_UNSUPPORTED_SSL_VERSION:
1329-
caseSSL_R_VERSION_TOO_HIGH:
1330-
caseSSL_R_VERSION_TOO_LOW:
13311329
caseSSL_R_WRONG_SSL_VERSION:
13321330
caseSSL_R_WRONG_VERSION_NUMBER:
13331331
caseSSL_R_TLSV1_ALERT_PROTOCOL_VERSION:
1332+
#ifdefSSL_R_VERSION_TOO_HIGH
1333+
caseSSL_R_VERSION_TOO_HIGH:
1334+
caseSSL_R_VERSION_TOO_LOW:
1335+
#endif
13341336
appendPQExpBuffer(&conn->errorMessage,
13351337
libpq_gettext("This may indicate that the server does not support any SSL protocol version between %s and %s.\n"),
13361338
conn->ssl_min_protocol_version ?

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp