summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate.h
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:02:10 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:02:10 +0000
commit0dfee7c217bcefb0cf322a6f87b8a9f866637e2f (patch)
tree85361c81826419d97f224bd17ef58dbbda612e6f /net/base/x509_certificate.h
parent4a4d43b3b71d7dbadd2c9b2f1ef413666c43c006 (diff)
downloadchromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.zip
chromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.tar.gz
chromium_src-0dfee7c217bcefb0cf322a6f87b8a9f866637e2f.tar.bz2
Add X509Certificate::Verify stubs for Mac and Linux.
They do nothing but return ERR_NOT_IMPLEMENTED. In SSLClientSocketWin, call X509Certificate::CreateFromHandle only once and store the result in the server_cert_ member. Add the CertVerifyResult::Reset method to clear all members. R=eroman BUG=3592 Review URL: http://codereview.chromium.org/21071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/x509_certificate.h')
-rw-r--r--net/base/x509_certificate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index dceb52f..80f085f 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -135,17 +135,23 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
// prefers the handle from the network because our HTTP cache isn't
// caching the corresponding intermediate CA certificates yet
// (http://crbug.com/7065).
+ //
+ // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
static X509Certificate* CreateFromHandle(OSCertHandle cert_handle,
Source source);
// Create an X509Certificate from the BER-encoded representation.
// Returns NULL on failure.
+ //
+ // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
static X509Certificate* CreateFromBytes(const char* data, int length);
// Create an X509Certificate from the representation stored in the given
// pickle. The data for this object is found relative to the given
// pickle_iter, which should be passed to the pickle's various Read* methods.
// Returns NULL on failure.
+ //
+ // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
static X509Certificate* CreateFromPickle(const Pickle& pickle,
void** pickle_iter);