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

Unified Diff: net/cert/x509_util.cc

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cookies_list.js Created 6 years, 5 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: net/cert/x509_util.cc
diff --git a/net/cert/x509_util.cc b/net/cert/x509_util.cc
index cc0a2c583bf343bc27a492c94d387e21eeede1b6..d74340eaf6fcb64aeae067d277adbe402f7d5ee9 100644
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -19,7 +19,7 @@ namespace x509_util {
static const uint16 kRSAKeyLength = 1024;
// Certificates made by CreateKeyAndSelfSignedCert and
-// CreateKeyAndDomainBoundCertEC will be signed using this digest algorithm.
+// CreateKeyAndChannelIDEC will be signed using this digest algorithm.
static const DigestAlgorithm kSignatureDigestAlgorithm = DIGEST_SHA256;
ClientCertSorter::ClientCertSorter() : now_(base::Time::Now()) {}
@@ -55,23 +55,23 @@ bool ClientCertSorter::operator()(
return a_intermediates.size() < b_intermediates.size();
}
-bool CreateKeyAndDomainBoundCertEC(const std::string& domain,
- uint32 serial_number,
- base::Time not_valid_before,
- base::Time not_valid_after,
- scoped_ptr<crypto::ECPrivateKey>* key,
- std::string* der_cert) {
+bool CreateKeyAndChannelIDEC(const std::string& domain,
+ uint32 serial_number,
+ base::Time not_valid_before,
+ base::Time not_valid_after,
+ scoped_ptr<crypto::ECPrivateKey>* key,
+ std::string* der_cert) {
scoped_ptr<crypto::ECPrivateKey> new_key(crypto::ECPrivateKey::Create());
if (!new_key.get())
return false;
- bool success = CreateDomainBoundCertEC(new_key.get(),
- kSignatureDigestAlgorithm,
- domain,
- serial_number,
- not_valid_before,
- not_valid_after,
- der_cert);
+ bool success = CreateChannelIDEC(new_key.get(),
+ kSignatureDigestAlgorithm,
+ domain,
+ serial_number,
+ not_valid_before,
+ not_valid_after,
+ der_cert);
if (success)
key->reset(new_key.release());

Powered by Google App Engine
This is Rietveld 408576698