Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Add support for enpass
Browse files Browse the repository at this point in the history
Auditors: @bsclifton

Eventually this code can be moved to browser-laptop, but we haven't done that refactoring yet

Fix brave/browser-laptop#6906

This goes along with: brave/vault-updater@79c9cad

Happy Birthday by the way 🦂  ;)
  • Loading branch information
bbondy committed Jan 28, 2017
1 parent 6933099 commit dc56987
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brave/browser/api/brave_api_component_updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ void ComponentUpdater::RegisterComponent(const std::string& component_id) {
} else if (component_id == kPocketId) {
RegisterComponentForUpdate(
kPocketPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kEnpassId) {
RegisterComponentForUpdate(
kEnpassPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kWidevineId) {
brave::RegisterWidevineCdmComponent(
g_browser_process->component_updater(),
Expand Down
45 changes: 45 additions & 0 deletions brave/browser/component_updater/default_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,49 @@ const std::string kPocketPublicKeyStr( // NOLINT
(const char *)kPocketPublicKey, sizeof(kPocketPublicKey));
const std::string kPocketId("niloccemoadcdkdjlinkgdfekeahmflj"); // NOLINT

// Enpass
// Download: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=52.0.2743.116&x=id%3Dkmcfomidfpdkfieipokbalgegidffkal%26uc // NOLINT
const uint8_t kEnpassPublicKey[294] = {
0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09,
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01,
0x00, 0x84, 0x5a, 0x00, 0x2a, 0xd3, 0x8e, 0x3d,
0x8d, 0x17, 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 0x43, 0x4e, 0xb9, 0x97, 0xbb, 0x3e,
0xfc, 0xa6, 0xc1, 0x6c, 0x43, 0xd0, 0x9d, 0x19,
0x55, 0xf0, 0xc4, 0xe9, 0x53, 0x50, 0x69, 0x5e,
0xcf, 0x91, 0xbc, 0x7d, 0xc1, 0xea, 0xed, 0x78,
0x7c, 0xe8, 0x01, 0x87, 0x52, 0x5d, 0xd8, 0xf9,
0x30, 0xa2, 0x21, 0x2f, 0x4d, 0xbd, 0xff, 0x35,
0x67, 0xdc, 0x1a, 0x42, 0x92, 0x91, 0x19, 0x06,
0xbf, 0x8c, 0xd9, 0x95, 0xd7, 0xa2, 0xd1, 0x00,
0x8b, 0x02, 0x03, 0x01, 0x00, 0x01
};
const std::string kEnpassPublicKeyStr( // NOLINT
(const char *)kEnpassPublicKey, sizeof(kEnpassPublicKey));
const std::string kEnpassId("kmcfomidfpdkfieipokbalgegidffkal"); // NOLINT

#endif // BRAVE_BROWSER_COMPONENT_UPDATER_DEFAULT_EXTENSIONS_H_

1 comment on commit dc56987

@bsclifton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ 😄

Please sign in to comment.