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

Unified Diff: net/base/x509_certificate.h

Issue 8342054: net: enable CRL sets behind a command line flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... 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_defaults.cc ('k') | net/base/x509_certificate.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 94a6f4a93f5b9b4fa821744b3871c8c5bbddf13b..b4677d23744bddafe510971dc2a81e9e1bdf525a 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -44,6 +44,7 @@ class RSAPrivateKey;
namespace net {
+class CRLSet;
class CertVerifyResult;
typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
@@ -320,8 +321,12 @@ class NET_EXPORT X509Certificate
// If VERIFY_REV_CHECKING_ENABLED is set in |flags|, certificate revocation
// checking is performed. If VERIFY_EV_CERT is set in |flags| too,
// EV certificate verification is performed.
+ //
+ // |crl_set| points to an optional CRLSet structure which can be used to
+ // avoid revocation checks over the network.
int Verify(const std::string& hostname,
int flags,
+ CRLSet* crl_set,
CertVerifyResult* verify_result) const;
// Verifies that |hostname| matches this certificate.
@@ -416,6 +421,7 @@ class NET_EXPORT X509Certificate
// Parameters and return value are as per Verify().
int VerifyInternal(const std::string& hostname,
int flags,
+ CRLSet* crl_set,
CertVerifyResult* verify_result) const;
// The serial number, DER encoded.
« no previous file with comments | « net/base/ssl_config_service_defaults.cc ('k') | net/base/x509_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698