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

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

Issue 8787011: Log server advertised protos and the selected (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_client_socket_openssl.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, 52 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen,
53 const unsigned char* in, unsigned int inlen); 53 const unsigned char* in, unsigned int inlen);
54 54
55 // SSLClientSocket methods: 55 // SSLClientSocket methods:
56 virtual void GetSSLInfo(SSLInfo* ssl_info); 56 virtual void GetSSLInfo(SSLInfo* ssl_info);
57 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 57 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
58 virtual int ExportKeyingMaterial(const base::StringPiece& label, 58 virtual int ExportKeyingMaterial(const base::StringPiece& label,
59 const base::StringPiece& context, 59 const base::StringPiece& context,
60 unsigned char *out, 60 unsigned char *out,
61 unsigned int outlen); 61 unsigned int outlen);
62 virtual NextProtoStatus GetNextProto(std::string* proto); 62 virtual NextProtoStatus GetNextProto(std::string* proto,
63 std::string* server_protos);
63 64
64 // StreamSocket methods: 65 // StreamSocket methods:
65 virtual int Connect(OldCompletionCallback* callback); 66 virtual int Connect(OldCompletionCallback* callback);
66 virtual void Disconnect(); 67 virtual void Disconnect();
67 virtual bool IsConnected() const; 68 virtual bool IsConnected() const;
68 virtual bool IsConnectedAndIdle() const; 69 virtual bool IsConnectedAndIdle() const;
69 virtual int GetPeerAddress(AddressList* address) const; 70 virtual int GetPeerAddress(AddressList* address) const;
70 virtual int GetLocalAddress(IPEndPoint* address) const; 71 virtual int GetLocalAddress(IPEndPoint* address) const;
71 virtual const BoundNetLog& NetLog() const; 72 virtual const BoundNetLog& NetLog() const;
72 virtual void SetSubresourceSpeculation(); 73 virtual void SetSubresourceSpeculation();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 157
157 enum State { 158 enum State {
158 STATE_NONE, 159 STATE_NONE,
159 STATE_HANDSHAKE, 160 STATE_HANDSHAKE,
160 STATE_VERIFY_CERT, 161 STATE_VERIFY_CERT,
161 STATE_VERIFY_CERT_COMPLETE, 162 STATE_VERIFY_CERT_COMPLETE,
162 }; 163 };
163 State next_handshake_state_; 164 State next_handshake_state_;
164 NextProtoStatus npn_status_; 165 NextProtoStatus npn_status_;
165 std::string npn_proto_; 166 std::string npn_proto_;
167 std::string server_protos_;
166 BoundNetLog net_log_; 168 BoundNetLog net_log_;
167 }; 169 };
168 170
169 } // namespace net 171 } // namespace net
170 172
171 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 173 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698