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

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

Issue 376753002: Fix webui cert viewer showing wrong cert chain on NSS and no chain on OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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: chrome/common/net/x509_certificate_model_openssl.cc
diff --git a/chrome/common/net/x509_certificate_model_openssl.cc b/chrome/common/net/x509_certificate_model_openssl.cc
index 9b477f66dbb376d7b02d15dc3d098fee0fafd70c..1611f01520362c7776f8fd00b7d585433f828e03 100644
--- a/chrome/common/net/x509_certificate_model_openssl.cc
+++ b/chrome/common/net/x509_certificate_model_openssl.cc
@@ -1134,19 +1134,6 @@ std::string HashCertSHA1(net::X509Certificate::OSCertHandle cert_handle) {
return ProcessRawBytes(sha1_data, sha1_size);
}
-void GetCertChainFromCert(net::X509Certificate::OSCertHandle cert_handle,
- net::X509Certificate::OSCertHandles* cert_handles) {
- // TODO(bulach): how to get the chain out of a certificate?
- cert_handles->push_back(net::X509Certificate::DupOSCertHandle(cert_handle));
-}
-
-void DestroyCertChain(net::X509Certificate::OSCertHandles* cert_handles) {
- for (net::X509Certificate::OSCertHandles::iterator i = cert_handles->begin();
- i != cert_handles->end(); ++i)
- X509_free(*i);
- cert_handles->clear();
-}
-
std::string GetCMSString(const net::X509Certificate::OSCertHandles& cert_chain,
size_t start, size_t end) {
std::string rv;

Powered by Google App Engine
This is Rietveld 408576698