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

Unified Diff: chrome/common/net/x509_certificate_model_nss.cc

Issue 6793026: Initial support for HSTS certificate locking. This isn't a finished work, but (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: chrome/common/net/x509_certificate_model_nss.cc
===================================================================
--- chrome/common/net/x509_certificate_model_nss.cc (revision 80507)
+++ chrome/common/net/x509_certificate_model_nss.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -273,26 +273,6 @@
return HashCert(cert_handle, HASH_AlgSHA1, SHA1_LENGTH);
}
-void GetCertChainFromCert(X509Certificate::OSCertHandle cert_handle,
- X509Certificate::OSCertHandles* cert_handles) {
- CERTCertList* cert_list =
- CERT_GetCertChainFromCert(cert_handle, PR_Now(), certUsageSSLServer);
- CERTCertListNode* node;
- for (node = CERT_LIST_HEAD(cert_list);
- !CERT_LIST_END(node, cert_list);
- node = CERT_LIST_NEXT(node)) {
- cert_handles->push_back(CERT_DupCertificate(node->cert));
- }
- CERT_DestroyCertList(cert_list);
-}
-
-void DestroyCertChain(X509Certificate::OSCertHandles* cert_handles) {
- for (X509Certificate::OSCertHandles::iterator i(cert_handles->begin());
- i != cert_handles->end(); ++i)
- CERT_DestroyCertificate(*i);
- cert_handles->clear();
-}
-
string GetDerString(X509Certificate::OSCertHandle cert_handle) {
return string(reinterpret_cast<const char*>(cert_handle->derCert.data),
cert_handle->derCert.len);
Property changes on: chrome/common/net/x509_certificate_model_nss.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698