1 /* -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/publicdomain/zero/1.0/ */
9 let certOverrideService = Cc[
10 "@mozilla.org/security/certoverride;1"
11 ].getService(Ci.nsICertOverrideService);
12 certOverrideService.setDisableAllSecurityChecksAndLetAttackersInterceptMyData(
16 add_tls_server_setup("BadCertAndPinningServer", "bad_certs");
17 add_connection_test("expired.example.com", PRErrorCodeSuccess);
18 add_test(function () {
19 certOverrideService.setDisableAllSecurityChecksAndLetAttackersInterceptMyData(