OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "net/socket/fuzzed_socket_factory.h" | 5 #include "net/socket/fuzzed_socket_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/test/fuzzed_data_provider.h" | 9 #include "base/test/fuzzed_data_provider.h" |
10 #include "net/base/address_list.h" | 10 #include "net/base/address_list.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 // SSLClientSocket implementation: | 100 // SSLClientSocket implementation: |
101 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} | 101 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} |
102 | 102 |
103 ChannelIDService* GetChannelIDService() const override { | 103 ChannelIDService* GetChannelIDService() const override { |
104 NOTREACHED(); | 104 NOTREACHED(); |
105 return nullptr; | 105 return nullptr; |
106 } | 106 } |
107 | 107 |
108 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 108 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
109 std::vector<uint8_t>* out) override { | 109 TokenBindingType tb_type, |
| 110 std::vector<uint8_t>* out) override { |
110 NOTREACHED(); | 111 NOTREACHED(); |
111 return ERR_UNEXPECTED; | 112 return ERR_UNEXPECTED; |
112 } | 113 } |
113 | 114 |
114 crypto::ECPrivateKey* GetChannelIDKey() const override { | 115 crypto::ECPrivateKey* GetChannelIDKey() const override { |
115 NOTREACHED(); | 116 NOTREACHED(); |
116 return nullptr; | 117 return nullptr; |
117 } | 118 } |
118 | 119 |
119 private: | 120 private: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 std::unique_ptr<ClientSocketHandle> transport_socket, | 157 std::unique_ptr<ClientSocketHandle> transport_socket, |
157 const HostPortPair& host_and_port, | 158 const HostPortPair& host_and_port, |
158 const SSLConfig& ssl_config, | 159 const SSLConfig& ssl_config, |
159 const SSLClientSocketContext& context) { | 160 const SSLClientSocketContext& context) { |
160 return base::MakeUnique<FailingSSLClientSocket>(); | 161 return base::MakeUnique<FailingSSLClientSocket>(); |
161 } | 162 } |
162 | 163 |
163 void FuzzedSocketFactory::ClearSSLSessionCache() {} | 164 void FuzzedSocketFactory::ClearSSLSessionCache() {} |
164 | 165 |
165 } // namespace net | 166 } // namespace net |
OLD | NEW |