-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revoked certificates don't show certificate error on all platforms. This PR enables CRLSets, a component managed by Google to show certificate errors for domains with revoked certificates. Since, CRLSets is maintained by Google we will be proxying requests for CRLSets through crlsets[n].brave.com, crxdownload.brave.com (resources) and componentupdater.brave.com (component updates) auditors: @bbondy, @bsclifton, @diracdeltas
- Loading branch information
Showing
7 changed files
with
238 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
chromium_src/chrome/browser/component_updater/crl_set_component_installer.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
|
||
#define RegisterCRLSetComponent RegisterCRLSetComponent_ChromiumImpl | ||
#include "../../../../../chrome/browser/component_updater/crl_set_component_installer.cc" // NOLINT | ||
#undef RegisterCRLSetComponent | ||
|
||
#include "brave/browser/extensions/brave_component_extension.h" | ||
#include "brave/common/extensions/extension_constants.h" | ||
#include "chrome/browser/browser_process.h" | ||
|
||
namespace component_updater { | ||
|
||
void OnCRLSetRegistered() { | ||
ComponentsUI demand_updater; | ||
demand_updater.OnDemandUpdate(g_browser_process->component_updater(), | ||
crl_set_extension_id); | ||
} | ||
|
||
void RegisterCRLSetComponent(ComponentUpdateService* cus, | ||
const base::FilePath& user_data_dir) { | ||
auto installer = base::MakeRefCounted<component_updater::ComponentInstaller>( | ||
std::make_unique<CRLSetPolicy>()); | ||
installer->Register(g_browser_process->component_updater(), | ||
base::Bind(&OnCRLSetRegistered)); | ||
} | ||
|
||
} // namespace component_updater |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
// Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
|
||
#ifndef BRAVE_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | ||
#define BRAVE_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | ||
|
||
|
||
extern const char brave_extension_id[]; | ||
extern const char brave_rewards_extension_id[]; | ||
extern const char brave_webtorrent_extension_id[]; | ||
extern const char hangouts_extension_id[]; | ||
extern const char widevine_extension_id[]; | ||
extern const char brave_sync_extension_id[]; | ||
extern const char crl_set_extension_id[]; | ||
|
||
extern const char pdfjs_extension_id[]; | ||
extern const char pdfjs_extension_name[]; | ||
extern const char pdfjs_extension_public_key[]; | ||
extern const char pdfjs_extension_origin[]; | ||
|
||
#endif // BRAVE_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
Oops, something went wrong.