tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_encrypted_client_hello_client_only.js (876B)


      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";
      5 
      6 // Public Name = delegated-enabled.example.com
      7 const ECH_CONFIG_FIXED =
      8  "AFD+DQBMTQAgACCKB1Y5SfrGIyk27W82xPpzWTDs3q72c04xSurDWlb9CgAEAAEAA2QdZGVsZWdhdGVkLWVuYWJsZWQuZXhhbXBsZS5jb20AAA==";
      9 do_get_profile();
     10 
     11 // An arbitrary, non-ECH server.
     12 add_tls_server_setup(
     13  "DelegatedCredentialsServer",
     14  "test_delegated_credentials"
     15 );
     16 
     17 add_test(function () {
     18  clearSessionCache();
     19  run_next_test();
     20 });
     21 
     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
     32 );