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

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

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 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 | 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) 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Callback from the SSL layer that indicates the remote server is requesting 49 // Callback from the SSL layer that indicates the remote server is requesting
50 // a certificate for this client. 50 // a certificate for this client.
51 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey); 51 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey);
52 52
53 // Callback from the SSL layer to check which NPN protocol we are supporting 53 // Callback from the SSL layer to check which NPN protocol we are supporting
54 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, 54 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen,
55 const unsigned char* in, unsigned int inlen); 55 const unsigned char* in, unsigned int inlen);
56 56
57 // SSLClientSocket implementation. 57 // SSLClientSocket implementation.
58 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
59 virtual void GetSSLCertRequestInfo( 58 virtual void GetSSLCertRequestInfo(
60 SSLCertRequestInfo* cert_request_info) OVERRIDE; 59 SSLCertRequestInfo* cert_request_info) OVERRIDE;
61 virtual int ExportKeyingMaterial(const base::StringPiece& label, 60 virtual int ExportKeyingMaterial(const base::StringPiece& label,
62 bool has_context, 61 bool has_context,
63 const base::StringPiece& context, 62 const base::StringPiece& context,
64 unsigned char* out, 63 unsigned char* out,
65 unsigned int outlen) OVERRIDE; 64 unsigned int outlen) OVERRIDE;
66 virtual NextProtoStatus GetNextProto(std::string* proto, 65 virtual NextProtoStatus GetNextProto(std::string* proto,
67 std::string* server_protos) OVERRIDE; 66 std::string* server_protos) OVERRIDE;
68 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; 67 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
69 68
70 // StreamSocket implementation. 69 // StreamSocket implementation.
71 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 70 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
72 virtual void Disconnect() OVERRIDE; 71 virtual void Disconnect() OVERRIDE;
73 virtual bool IsConnected() const OVERRIDE; 72 virtual bool IsConnected() const OVERRIDE;
74 virtual bool IsConnectedAndIdle() const OVERRIDE; 73 virtual bool IsConnectedAndIdle() const OVERRIDE;
75 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 74 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
76 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 75 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
77 virtual const BoundNetLog& NetLog() const OVERRIDE; 76 virtual const BoundNetLog& NetLog() const OVERRIDE;
78 virtual void SetSubresourceSpeculation() OVERRIDE; 77 virtual void SetSubresourceSpeculation() OVERRIDE;
79 virtual void SetOmniboxSpeculation() OVERRIDE; 78 virtual void SetOmniboxSpeculation() OVERRIDE;
80 virtual bool WasEverUsed() const OVERRIDE; 79 virtual bool WasEverUsed() const OVERRIDE;
81 virtual bool UsingTCPFastOpen() const OVERRIDE; 80 virtual bool UsingTCPFastOpen() const OVERRIDE;
82 virtual int64 NumBytesRead() const OVERRIDE; 81 virtual int64 NumBytesRead() const OVERRIDE;
83 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 82 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
83 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
84 84
85 // Socket implementation. 85 // Socket implementation.
86 virtual int Read(IOBuffer* buf, int buf_len, 86 virtual int Read(IOBuffer* buf, int buf_len,
87 const CompletionCallback& callback) OVERRIDE; 87 const CompletionCallback& callback) OVERRIDE;
88 virtual int Write(IOBuffer* buf, int buf_len, 88 virtual int Write(IOBuffer* buf, int buf_len,
89 const CompletionCallback& callback) OVERRIDE; 89 const CompletionCallback& callback) OVERRIDE;
90 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 90 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
91 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 91 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
92 92
93 private: 93 private:
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 State next_handshake_state_; 174 State next_handshake_state_;
175 NextProtoStatus npn_status_; 175 NextProtoStatus npn_status_;
176 std::string npn_proto_; 176 std::string npn_proto_;
177 std::string server_protos_; 177 std::string server_protos_;
178 BoundNetLog net_log_; 178 BoundNetLog net_log_;
179 }; 179 };
180 180
181 } // namespace net 181 } // namespace net
182 182
183 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 183 #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