OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 int BufferSend(); | 136 int BufferSend(); |
137 int BufferRecv(); | 137 int BufferRecv(); |
138 void BufferSendComplete(int result); | 138 void BufferSendComplete(int result); |
139 void BufferRecvComplete(int result); | 139 void BufferRecvComplete(int result); |
140 void TransportWriteComplete(int result); | 140 void TransportWriteComplete(int result); |
141 int TransportReadComplete(int result); | 141 int TransportReadComplete(int result); |
142 | 142 |
143 // Callback from the SSL layer that indicates the remote server is requesting | 143 // Callback from the SSL layer that indicates the remote server is requesting |
144 // a certificate for this client. | 144 // a certificate for this client. |
145 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey); | 145 int ClientCertRequestCallback(SSL* ssl); |
146 | 146 |
147 // CertVerifyCallback is called to verify the server's certificates. We do | 147 // CertVerifyCallback is called to verify the server's certificates. We do |
148 // verification after the handshake so this function only enforces that the | 148 // verification after the handshake so this function only enforces that the |
149 // certificates don't change during renegotiation. | 149 // certificates don't change during renegotiation. |
150 int CertVerifyCallback(X509_STORE_CTX *store_ctx); | 150 int CertVerifyCallback(X509_STORE_CTX *store_ctx); |
151 | 151 |
152 // Callback from the SSL layer to check which NPN protocol we are supporting | 152 // Callback from the SSL layer to check which NPN protocol we are supporting |
153 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, | 153 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, |
154 const unsigned char* in, unsigned int inlen); | 154 const unsigned char* in, unsigned int inlen); |
155 | 155 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // True if channel ID extension was negotiated. | 269 // True if channel ID extension was negotiated. |
270 bool channel_id_xtn_negotiated_; | 270 bool channel_id_xtn_negotiated_; |
271 // The request handle for |channel_id_service_|. | 271 // The request handle for |channel_id_service_|. |
272 ChannelIDService::RequestHandle channel_id_request_handle_; | 272 ChannelIDService::RequestHandle channel_id_request_handle_; |
273 BoundNetLog net_log_; | 273 BoundNetLog net_log_; |
274 }; | 274 }; |
275 | 275 |
276 } // namespace net | 276 } // namespace net |
277 | 277 |
278 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 278 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |