OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |