no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / security / manager / ssl / tests / unit / test_encrypted_client_hello_client_only.js
blob0949bc60382623f9d94461dbc78b3d541b2dee41
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 "use strict";
6 // Public Name = delegated-enabled.example.com
7 const ECH_CONFIG_FIXED =
8   "AFD+DQBMTQAgACCKB1Y5SfrGIyk27W82xPpzWTDs3q72c04xSurDWlb9CgAEAAEAA2QdZGVsZWdhdGVkLWVuYWJsZWQuZXhhbXBsZS5jb20AAA==";
9 do_get_profile();
11 // An arbitrary, non-ECH server.
12 add_tls_server_setup(
13   "DelegatedCredentialsServer",
14   "test_delegated_credentials"
17 add_test(function () {
18   clearSessionCache();
19   run_next_test();
20 });
22 // Connect, sending ECH. The server is not configured for it,
23 // but *is* authoritative for the public name.
24 add_connection_test(
25   "delegated-disabled.example.com",
26   SSL_ERROR_ECH_RETRY_WITHOUT_ECH,
27   null,
28   null,
29   null,
30   null,
31   ECH_CONFIG_FIXED