File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -474,11 +474,13 @@ be_tls_open_server(Port *port)
474
474
case SSL_R_UNKNOWN_PROTOCOL :
475
475
case SSL_R_UNKNOWN_SSL_VERSION :
476
476
case SSL_R_UNSUPPORTED_SSL_VERSION :
477
- case SSL_R_VERSION_TOO_HIGH :
478
- case SSL_R_VERSION_TOO_LOW :
479
477
case SSL_R_WRONG_SSL_VERSION :
480
478
case SSL_R_WRONG_VERSION_NUMBER :
481
479
case SSL_R_TLSV1_ALERT_PROTOCOL_VERSION :
480
+ #ifdef SSL_R_VERSION_TOO_HIGH
481
+ case SSL_R_VERSION_TOO_HIGH :
482
+ case SSL_R_VERSION_TOO_LOW :
483
+ #endif
482
484
give_proto_hint = true;
483
485
break ;
484
486
default :
Original file line number Diff line number Diff line change @@ -1326,11 +1326,13 @@ open_client_SSL(PGconn *conn)
1326
1326
case SSL_R_UNKNOWN_PROTOCOL :
1327
1327
case SSL_R_UNKNOWN_SSL_VERSION :
1328
1328
case SSL_R_UNSUPPORTED_SSL_VERSION :
1329
- case SSL_R_VERSION_TOO_HIGH :
1330
- case SSL_R_VERSION_TOO_LOW :
1331
1329
case SSL_R_WRONG_SSL_VERSION :
1332
1330
case SSL_R_WRONG_VERSION_NUMBER :
1333
1331
case SSL_R_TLSV1_ALERT_PROTOCOL_VERSION :
1332
+ #ifdef SSL_R_VERSION_TOO_HIGH
1333
+ case SSL_R_VERSION_TOO_HIGH :
1334
+ case SSL_R_VERSION_TOO_LOW :
1335
+ #endif
1334
1336
appendPQExpBuffer (& conn -> errorMessage ,
1335
1337
libpq_gettext ("This may indicate that the server does not support any SSL protocol version between %s and %s.\n" ),
1336
1338
conn -> ssl_min_protocol_version ?
You can’t perform that action at this time.
0 commit comments