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

Unified Diff: net/ssl/ssl_config.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/ssl/ssl_config.h ('k') | net/ssl/ssl_config_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_config.cc
diff --git a/net/ssl/ssl_config.cc b/net/ssl/ssl_config.cc
deleted file mode 100644
index 781898beaa930acdf9da0ccec0e6528732791154..0000000000000000000000000000000000000000
--- a/net/ssl/ssl_config.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/ssl/ssl_config.h"
-
-#include "net/socket/ssl_client_socket.h"
-
-namespace net {
-
-const uint16 kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_TLS1;
-
-const uint16 kDefaultSSLVersionFallbackMin = SSL_PROTOCOL_VERSION_TLS1;
-
-SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {}
-
-SSLConfig::CertAndStatus::~CertAndStatus() {}
-
-SSLConfig::SSLConfig()
- : rev_checking_enabled(false),
- rev_checking_required_local_anchors(false),
- version_min(kDefaultSSLVersionMin),
- version_max(SSLClientSocket::GetMaxSupportedSSLVersion()),
- version_fallback_min(kDefaultSSLVersionFallbackMin),
- channel_id_enabled(true),
- false_start_enabled(true),
- signed_cert_timestamps_enabled(true),
- require_forward_secrecy(false),
- send_client_cert(false),
- verify_ev_cert(false),
- version_fallback(false),
- cert_io_enabled(true),
- fastradio_padding_enabled(false),
- fastradio_padding_eligible(false) {
-}
-
-SSLConfig::~SSLConfig() {}
-
-bool SSLConfig::IsAllowedBadCert(X509Certificate* cert,
- CertStatus* cert_status) const {
- std::string der_cert;
- if (!X509Certificate::GetDEREncoded(cert->os_cert_handle(), &der_cert))
- return false;
- return IsAllowedBadCert(der_cert, cert_status);
-}
-
-bool SSLConfig::IsAllowedBadCert(const base::StringPiece& der_cert,
- CertStatus* cert_status) const {
- for (size_t i = 0; i < allowed_bad_certs.size(); ++i) {
- if (der_cert == allowed_bad_certs[i].der_cert) {
- if (cert_status)
- *cert_status = allowed_bad_certs[i].cert_status;
- return true;
- }
- }
- return false;
-}
-
-} // namespace net
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/ssl/ssl_config_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698