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

Unified Diff: net/cert/x509_util.cc

Issue 1076063002: Remove certificates from Channel ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Udpate KeysEqual to fail if preconditions fail Created 5 years, 7 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
« no previous file with comments | « net/cert/x509_util.h ('k') | net/cert/x509_util_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_util.cc
diff --git a/net/cert/x509_util.cc b/net/cert/x509_util.cc
index d74340eaf6fcb64aeae067d277adbe402f7d5ee9..2fb3f542c338ceb152327cffc7fcd35d08663753 100644
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -55,29 +55,6 @@ bool ClientCertSorter::operator()(
return a_intermediates.size() < b_intermediates.size();
}
-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 = CreateChannelIDEC(new_key.get(),
- kSignatureDigestAlgorithm,
- domain,
- serial_number,
- not_valid_before,
- not_valid_after,
- der_cert);
- if (success)
- key->reset(new_key.release());
-
- return success;
-}
-
bool CreateKeyAndSelfSignedCert(const std::string& subject,
uint32 serial_number,
base::Time not_valid_before,
« no previous file with comments | « net/cert/x509_util.h ('k') | net/cert/x509_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698