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

Side by Side Diff: net/socket/fuzzed_socket_factory.cc

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() Created 4 years, 3 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/quic/chromium/quic_stream_factory.cc ('k') | net/socket/socket_test_util.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698