Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: components/policy/core/common/cloud/policy_builder.h

Issue 143183007: Update policy signature verification to include policy domain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Trying again after mysterious chunk-mismatch error on last upload. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/policy_builder.h
diff --git a/components/policy/core/common/cloud/policy_builder.h b/components/policy/core/common/cloud/policy_builder.h
index 20114c6fc7f307bfc344697299be618299c185e6..66330041abecddb5bdb480f9f06873c8c93be318 100644
--- a/components/policy/core/common/cloud/policy_builder.h
+++ b/components/policy/core/common/cloud/policy_builder.h
@@ -89,6 +89,8 @@ class PolicyBuilder {
static std::string GetTestSigningKeySignature();
static std::string GetTestOtherSigningKeySignature();
+ std::vector<uint8> raw_signing_key() { return raw_signing_key_; }
+ std::vector<uint8> raw_new_signing_key() { return raw_new_signing_key_; }
Mattias Nissler (ping if slow) 2014/02/13 10:52:53 nit: newline
Andrew T Wilson (Slow) 2014/02/13 12:15:36 Done.
private:
// Produces |key|'s signature over |data| and stores it in |signature|.
void SignData(const std::string& data,
@@ -107,6 +109,7 @@ class PolicyBuilder {
// temporary RSAPrivateKey is created.
std::vector<uint8> raw_signing_key_;
std::vector<uint8> raw_new_signing_key_;
+ std::string raw_new_signing_key_signature_;
DISALLOW_COPY_AND_ASSIGN(PolicyBuilder);
};

Powered by Google App Engine
This is Rietveld 408576698