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

Side by Side Diff: net/socket/ssl_client_socket_nss.h

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: rebase Created 5 years, 2 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
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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
7 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // the SSL settings. 52 // the SSL settings.
53 SSLClientSocketNSS(scoped_ptr<ClientSocketHandle> transport_socket, 53 SSLClientSocketNSS(scoped_ptr<ClientSocketHandle> transport_socket,
54 const HostPortPair& host_and_port, 54 const HostPortPair& host_and_port,
55 const SSLConfig& ssl_config, 55 const SSLConfig& ssl_config,
56 const SSLClientSocketContext& context); 56 const SSLClientSocketContext& context);
57 ~SSLClientSocketNSS() override; 57 ~SSLClientSocketNSS() override;
58 58
59 // SSLClientSocket implementation. 59 // SSLClientSocket implementation.
60 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 60 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
61 NextProtoStatus GetNextProto(std::string* proto) const override; 61 NextProtoStatus GetNextProto(std::string* proto) const override;
62 std::string GetProvidedTokenBinding() override;
62 63
63 // SSLSocket implementation. 64 // SSLSocket implementation.
64 int ExportKeyingMaterial(const base::StringPiece& label, 65 int ExportKeyingMaterial(const base::StringPiece& label,
65 bool has_context, 66 bool has_context,
66 const base::StringPiece& context, 67 const base::StringPiece& context,
67 unsigned char* out, 68 unsigned char* out,
68 unsigned int outlen) override; 69 unsigned int outlen) override;
69 int GetTLSUniqueChannelBinding(std::string* out) override; 70 int GetTLSUniqueChannelBinding(std::string* out) override;
70 71
71 // StreamSocket implementation. 72 // StreamSocket implementation.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Added the following code Debugging in release mode. 201 // Added the following code Debugging in release mode.
201 mutable base::Lock lock_; 202 mutable base::Lock lock_;
202 // This is mutable so that CalledOnValidThread can set it. 203 // This is mutable so that CalledOnValidThread can set it.
203 // It's guarded by |lock_|. 204 // It's guarded by |lock_|.
204 mutable base::PlatformThreadId valid_thread_id_; 205 mutable base::PlatformThreadId valid_thread_id_;
205 }; 206 };
206 207
207 } // namespace net 208 } // namespace net
208 209
209 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698