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

Unified Diff: net/base/ssl_config_service.cc

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.h ('k') | net/base/ssl_config_service_defaults.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_config_service.cc
diff --git a/net/base/ssl_config_service.cc b/net/base/ssl_config_service.cc
index c0110a9ab161ce63492bd5aff602e122ebf00097..27d30759dc5577544fceca5bb53b2c17294931f0 100644
--- a/net/base/ssl_config_service.cc
+++ b/net/base/ssl_config_service.cc
@@ -4,6 +4,9 @@
#include "net/base/ssl_config_service.h"
+#include "base/lazy_instance.h"
+#include "base/memory/ref_counted.h"
+#include "net/base/crl_set.h"
#include "net/base/ssl_config_service_defaults.h"
#include "net/base/ssl_false_start_blacklist.h"
@@ -59,6 +62,9 @@ static bool g_cached_info_enabled = false;
static bool g_origin_bound_certs_enabled = false;
static bool g_false_start_enabled = true;
static bool g_dns_cert_provenance_checking = false;
+base::LazyInstance<scoped_refptr<CRLSet>,
+ base::LeakyLazyInstanceTraits<scoped_refptr<CRLSet> > >
+ g_crl_set(base::LINKER_INITIALIZED);
// static
void SSLConfigService::DisableFalseStart() {
@@ -82,14 +88,12 @@ bool SSLConfigService::dns_cert_provenance_checking_enabled() {
// static
void SSLConfigService::SetCRLSet(scoped_refptr<CRLSet> crl_set) {
- // TODO(agl): not implemented yet.
+ g_crl_set.Get() = crl_set;
}
// static
scoped_refptr<CRLSet> SSLConfigService::GetCRLSet() {
- // TODO(agl): not implemented yet.
- scoped_refptr<CRLSet> ret;
- return ret;
+ return g_crl_set.Get();
}
void SSLConfigService::EnableCachedInfo() {
« no previous file with comments | « net/base/ssl_config_service.h ('k') | net/base/ssl_config_service_defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698