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

Unified Diff: net/base/x509_certificate.h

Issue 8414047: Make X509Certificate::GetDEREncoded a static function taking an OSCertHandle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Errant comment Created 9 years, 2 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/base/ssl_config_service.cc ('k') | net/base/x509_certificate_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate.h
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index aee2447c761162675b1eeb5909187ab6a421327b..35aa871fd8c9e485ff797da33ce4c35eb1a999a9 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -340,10 +340,11 @@ class NET_EXPORT X509Certificate
// Returns true if it matches.
bool VerifyNameMatch(const std::string& hostname) const;
- // This method returns the DER encoded certificate.
- // If the return value is true then the DER encoded certificate is available.
- // The content of the DER encoded certificate is written to |encoded|.
- bool GetDEREncoded(std::string* encoded);
+ // This method returns the DER encoded data from an OSCertHandle.
wtc 2011/10/31 19:05:41 The |certificate| used in the original comment is
+ // If the return value is true, then the DER encoded certificate is written
+ // to |der_encoded|.
wtc 2011/10/31 19:05:41 We should say something like "On success, returns
+ static bool GetDEREncoded(OSCertHandle cert_handle,
+ std::string* der_encoded);
OSCertHandle os_cert_handle() const { return cert_handle_; }
« no previous file with comments | « net/base/ssl_config_service.cc ('k') | net/base/x509_certificate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698