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

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: Fixed style error. 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..ae223f6b30f4b96abca855065e3550aade496592 100644
--- a/components/policy/core/common/cloud/policy_builder.h
+++ b/components/policy/core/common/cloud/policy_builder.h
@@ -89,6 +89,9 @@ 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_; }
+
private:
// Produces |key|'s signature over |data| and stores it in |signature|.
void SignData(const std::string& data,
@@ -107,6 +110,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