Skip to content

Commit a6763a5

Browse files
committed
consts
1 parent a99bb85 commit a6763a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/src/ssl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ mod _ssl {
9090
// X509_V_FLAG_X509_STRICT as VERIFY_X509_STRICT,
9191
SSL_ERROR_ZERO_RETURN,
9292
SSL_OP_CIPHER_SERVER_PREFERENCE as OP_CIPHER_SERVER_PREFERENCE,
93+
SSL_OP_ENABLE_MIDDLEBOX_COMPAT as OP_ENABLE_MIDDLEBOX_COMPAT,
9394
SSL_OP_LEGACY_SERVER_CONNECT as OP_LEGACY_SERVER_CONNECT,
9495
SSL_OP_NO_SSLv2 as OP_NO_SSLv2,
9596
SSL_OP_NO_SSLv3 as OP_NO_SSLv3,
@@ -552,6 +553,7 @@ mod _ssl {
552553
options |= SslOptions::CIPHER_SERVER_PREFERENCE;
553554
options |= SslOptions::SINGLE_DH_USE;
554555
options |= SslOptions::SINGLE_ECDH_USE;
556+
options |= SslOptions::ENABLE_MIDDLEBOX_COMPAT;
555557
builder.set_options(options);
556558

557559
let mode = ssl::SslMode::ACCEPT_MOVING_WRITE_BUFFER | ssl::SslMode::AUTO_RETRY;

0 commit comments

Comments
 (0)