summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_creator.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 20:45:45 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 20:45:45 +0000
commitfbcc4030655802213aab5b731f1180062d232f2d (patch)
tree41da9d881467d61d9ecde52306f5aacebdcf9d33 /chrome/browser/extensions/extension_creator.h
parentcdb4266b62202b44eb1fb36877398c2cb5504917 (diff)
downloadchromium_src-fbcc4030655802213aab5b731f1180062d232f2d.zip
chromium_src-fbcc4030655802213aab5b731f1180062d232f2d.tar.gz
chromium_src-fbcc4030655802213aab5b731f1180062d232f2d.tar.bz2
Verify signed .crx extension installations
This is second try of: http://codereview.chromium.org/115682 that was comitted in in 18189 and reverted. BUG=12114 R=erikkay,wtc,aa Review URL: http://codereview.chromium.org/126014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_creator.h')
-rwxr-xr-xchrome/browser/extensions/extension_creator.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/browser/extensions/extension_creator.h b/chrome/browser/extensions/extension_creator.h
index febcecd..129e152 100755
--- a/chrome/browser/extensions/extension_creator.h
+++ b/chrome/browser/extensions/extension_creator.h
@@ -17,28 +17,6 @@
// generated randomly (and optionally written to |output_private_key_path|.
class ExtensionCreator {
public:
- // The size of the magic character sequence at the beginning of each crx file,
- // in bytes. This should be a multiple of 4.
- static const size_t kExtensionHeaderMagicSize = 4;
-
- // The magic character sequence at the beginning of each crx file.
- static const char kExtensionHeaderMagic[];
-
- // The current version of the crx format.
- static const uint32 kCurrentVersion = 2;
-
- // This header is the first data at the beginning of an extension. Its
- // contents are purposely 32-bit aligned so that it can just be slurped into
- // a struct without manual parsing.
- struct ExtensionHeader {
- char magic[kExtensionHeaderMagicSize];
- uint32 version;
- size_t key_size; // The size of the public key, in bytes.
- size_t signature_size; // The size of the signature, in bytes.
- // An ASN.1-encoded PublicKeyInfo structure follows.
- // The signature follows.
- };
-
ExtensionCreator() {}
bool Run(const FilePath& extension_dir,