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

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

Issue 1807063002: Remove GetTLSUniqueChannelBinding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/socket/ssl_server_socket_openssl.cc ('k') | no next file » | 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 #ifndef NET_SOCKET_SSL_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_SOCKET_H_
6 #define NET_SOCKET_SSL_SOCKET_H_ 6 #define NET_SOCKET_SSL_SOCKET_H_
7 7
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "net/socket/stream_socket.h" 9 #include "net/socket/stream_socket.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 // SSLSocket interface defines method that are common between client 13 // SSLSocket interface defines method that are common between client
14 // and server SSL sockets. 14 // and server SSL sockets.
15 class NET_EXPORT SSLSocket : public StreamSocket { 15 class NET_EXPORT SSLSocket : public StreamSocket {
16 public: 16 public:
17 ~SSLSocket() override {} 17 ~SSLSocket() override {}
18 18
19 // Exports data derived from the SSL master-secret (see RFC 5705). 19 // Exports data derived from the SSL master-secret (see RFC 5705).
20 // If |has_context| is false, uses the no-context construction from the 20 // If |has_context| is false, uses the no-context construction from the
21 // RFC and |context| is ignored. The call will fail with an error if 21 // RFC and |context| is ignored. The call will fail with an error if
22 // the socket is not connected or the SSL implementation does not 22 // the socket is not connected or the SSL implementation does not
23 // support the operation. 23 // support the operation.
24 virtual int ExportKeyingMaterial(const base::StringPiece& label, 24 virtual int ExportKeyingMaterial(const base::StringPiece& label,
25 bool has_context, 25 bool has_context,
26 const base::StringPiece& context, 26 const base::StringPiece& context,
27 unsigned char* out, 27 unsigned char* out,
28 unsigned int outlen) = 0; 28 unsigned int outlen) = 0;
29
30 // Stores the the tls-unique channel binding (see RFC 5929) in |*out|.
31 virtual int GetTLSUniqueChannelBinding(std::string* out) = 0;
32 }; 29 };
33 30
34 } // namespace net 31 } // namespace net
35 32
36 #endif // NET_SOCKET_SSL_SOCKET_H_ 33 #endif // NET_SOCKET_SSL_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698