mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
also passing
This commit is contained in:
@@ -173,25 +173,25 @@ if (DEFAULT_MIN_VERSION === 'TLSv1.2') {
|
||||
// U, 'ERR_SSL_UNSUPPORTED_PROTOCOL', 'ERR_SSL_WRONG_VERSION_NUMBER');
|
||||
}
|
||||
|
||||
// if (DEFAULT_MIN_VERSION === 'TLSv1.1') {
|
||||
// test(U, U, 'TLSv1_1_method', U, U, 'SSLv23_method', 'TLSv1.1');
|
||||
// test(U, U, 'TLSv1_method', U, U, 'SSLv23_method',
|
||||
// U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
// 'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
// test(U, U, 'SSLv23_method', U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
// test(U, U, 'SSLv23_method', U, U, 'TLSv1_method',
|
||||
// U, 'ERR_SSL_UNSUPPORTED_PROTOCOL', 'ERR_SSL_WRONG_VERSION_NUMBER');
|
||||
// }
|
||||
if (DEFAULT_MIN_VERSION === 'TLSv1.1') {
|
||||
test(U, U, 'TLSv1_1_method', U, U, 'SSLv23_method', 'TLSv1.1');
|
||||
test(U, U, 'TLSv1_method', U, U, 'SSLv23_method',
|
||||
U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
test(U, U, 'SSLv23_method', U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
test(U, U, 'SSLv23_method', U, U, 'TLSv1_method',
|
||||
U, 'ERR_SSL_UNSUPPORTED_PROTOCOL', 'ERR_SSL_WRONG_VERSION_NUMBER');
|
||||
}
|
||||
|
||||
// if (DEFAULT_MIN_VERSION === 'TLSv1') {
|
||||
// test(U, U, 'TLSv1_1_method', U, U, 'SSLv23_method', 'TLSv1.1');
|
||||
// test(U, U, 'TLSv1_method', U, U, 'SSLv23_method', 'TLSv1');
|
||||
// test(U, U, 'SSLv23_method', U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
// test(U, U, 'SSLv23_method', U, U, 'TLSv1_method', 'TLSv1');
|
||||
// }
|
||||
if (DEFAULT_MIN_VERSION === 'TLSv1') {
|
||||
test(U, U, 'TLSv1_1_method', U, U, 'SSLv23_method', 'TLSv1.1');
|
||||
test(U, U, 'TLSv1_method', U, U, 'SSLv23_method', 'TLSv1');
|
||||
test(U, U, 'SSLv23_method', U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
test(U, U, 'SSLv23_method', U, U, 'TLSv1_method', 'TLSv1');
|
||||
}
|
||||
|
||||
// // TLSv1 thru TLSv1.2 are only supported with explicit configuration with API or
|
||||
// // CLI (--tls-v1.0 and --tls-v1.1).
|
||||
// TLSv1 thru TLSv1.2 are only supported with explicit configuration with API or
|
||||
// CLI (--tls-v1.0 and --tls-v1.1).
|
||||
test(U, U, 'TLSv1_2_method', U, U, 'TLSv1_2_method', 'TLSv1.2');
|
||||
test(U, U, 'TLSv1_1_method', U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
test(U, U, 'TLSv1_method', U, U, 'TLSv1_method', 'TLSv1');
|
||||
@@ -221,32 +221,32 @@ if (DEFAULT_MIN_VERSION === 'TLSv1.2') {
|
||||
}
|
||||
}
|
||||
|
||||
// // The default with --tls-v1.1.
|
||||
// if (DEFAULT_MIN_VERSION === 'TLSv1.1') {
|
||||
// test(U, U, 'TLSv1_1_method', U, U, U, 'TLSv1.1');
|
||||
// test(U, U, 'TLSv1_method', U, U, U,
|
||||
// U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
// 'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
// test(U, U, U, U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
// The default with --tls-v1.1.
|
||||
if (DEFAULT_MIN_VERSION === 'TLSv1.1') {
|
||||
test(U, U, 'TLSv1_1_method', U, U, U, 'TLSv1.1');
|
||||
test(U, U, 'TLSv1_method', U, U, U,
|
||||
U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
test(U, U, U, U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
|
||||
// if (DEFAULT_MAX_VERSION === 'TLSv1.2') {
|
||||
// test(U, U, U, U, U, 'TLSv1_method',
|
||||
// U, 'ERR_SSL_UNSUPPORTED_PROTOCOL', 'ERR_SSL_WRONG_VERSION_NUMBER');
|
||||
// } else {
|
||||
// // TLS1.3 client hellos are are not understood by TLS1.1 or below.
|
||||
// test(U, U, U, U, U, 'TLSv1_method',
|
||||
// U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
// 'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
// }
|
||||
// }
|
||||
if (DEFAULT_MAX_VERSION === 'TLSv1.2') {
|
||||
test(U, U, U, U, U, 'TLSv1_method',
|
||||
U, 'ERR_SSL_UNSUPPORTED_PROTOCOL', 'ERR_SSL_WRONG_VERSION_NUMBER');
|
||||
} else {
|
||||
// TLS1.3 client hellos are are not understood by TLS1.1 or below.
|
||||
test(U, U, U, U, U, 'TLSv1_method',
|
||||
U, 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION',
|
||||
'ERR_SSL_UNSUPPORTED_PROTOCOL');
|
||||
}
|
||||
}
|
||||
|
||||
// // The default with --tls-v1.0.
|
||||
// if (DEFAULT_MIN_VERSION === 'TLSv1') {
|
||||
// test(U, U, 'TLSv1_1_method', U, U, U, 'TLSv1.1');
|
||||
// test(U, U, 'TLSv1_method', U, U, U, 'TLSv1');
|
||||
// test(U, U, U, U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
// test(U, U, U, U, U, 'TLSv1_method', 'TLSv1');
|
||||
// }
|
||||
// The default with --tls-v1.0.
|
||||
if (DEFAULT_MIN_VERSION === 'TLSv1') {
|
||||
test(U, U, 'TLSv1_1_method', U, U, U, 'TLSv1.1');
|
||||
test(U, U, 'TLSv1_method', U, U, U, 'TLSv1');
|
||||
test(U, U, U, U, U, 'TLSv1_1_method', 'TLSv1.1');
|
||||
test(U, U, U, U, U, 'TLSv1_method', 'TLSv1');
|
||||
}
|
||||
|
||||
// TLS min/max are respected when set with no secureProtocol.
|
||||
test('TLSv1', 'TLSv1.2', U, U, U, 'TLSv1_method', 'TLSv1');
|
||||
|
||||
Reference in New Issue
Block a user