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

Side by Side Diff: remoting/protocol/ssl_hmac_channel_authenticator.cc

Issue 2937563002: Remove the EV Certs Whitelist (Closed)
Patch Set: Update comment Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 public: 72 public:
73 IgnoresCTPolicyEnforcer() = default; 73 IgnoresCTPolicyEnforcer() = default;
74 ~IgnoresCTPolicyEnforcer() override = default; 74 ~IgnoresCTPolicyEnforcer() override = default;
75 75
76 net::ct::CertPolicyCompliance DoesConformToCertPolicy( 76 net::ct::CertPolicyCompliance DoesConformToCertPolicy(
77 net::X509Certificate* cert, 77 net::X509Certificate* cert,
78 const net::SCTList& verified_scts, 78 const net::SCTList& verified_scts,
79 const net::NetLogWithSource& net_log) override { 79 const net::NetLogWithSource& net_log) override {
80 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS; 80 return net::ct::CertPolicyCompliance::CERT_POLICY_COMPLIES_VIA_SCTS;
81 } 81 }
82
83 net::ct::EVPolicyCompliance DoesConformToCTEVPolicy(
84 net::X509Certificate* cert,
85 const net::ct::EVCertsWhitelist* ev_whitelist,
86 const net::SCTList& verified_scts,
87 const net::NetLogWithSource& net_log) override {
88 return net::ct::EVPolicyCompliance::EV_POLICY_DOES_NOT_APPLY;
89 }
90 }; 82 };
91 83
92 // Implements net::StreamSocket interface on top of P2PStreamSocket to be passed 84 // Implements net::StreamSocket interface on top of P2PStreamSocket to be passed
93 // to net::SSLClientSocket and net::SSLServerSocket. 85 // to net::SSLClientSocket and net::SSLServerSocket.
94 class NetStreamSocketAdapter : public net::StreamSocket { 86 class NetStreamSocketAdapter : public net::StreamSocket {
95 public: 87 public:
96 NetStreamSocketAdapter(std::unique_ptr<P2PStreamSocket> socket) 88 NetStreamSocketAdapter(std::unique_ptr<P2PStreamSocket> socket)
97 : socket_(std::move(socket)) {} 89 : socket_(std::move(socket)) {}
98 ~NetStreamSocketAdapter() override {} 90 ~NetStreamSocketAdapter() override {}
99 91
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 std::move(socket_), std::move(server_context_))); 465 std::move(socket_), std::move(server_context_)));
474 } 466 }
475 } 467 }
476 468
477 void SslHmacChannelAuthenticator::NotifyError(int error) { 469 void SslHmacChannelAuthenticator::NotifyError(int error) {
478 base::ResetAndReturn(&done_callback_).Run(error, nullptr); 470 base::ResetAndReturn(&done_callback_).Run(error, nullptr);
479 } 471 }
480 472
481 } // namespace protocol 473 } // namespace protocol
482 } // namespace remoting 474 } // namespace remoting
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698