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

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

Issue 1474983003: Support for client certs in ssl_server_socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 <openssl/base.h> 8 #include <openssl/base.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Socket implementation. 92 // Socket implementation.
93 int Read(IOBuffer* buf, 93 int Read(IOBuffer* buf,
94 int buf_len, 94 int buf_len,
95 const CompletionCallback& callback) override; 95 const CompletionCallback& callback) override;
96 int Write(IOBuffer* buf, 96 int Write(IOBuffer* buf,
97 int buf_len, 97 int buf_len,
98 const CompletionCallback& callback) override; 98 const CompletionCallback& callback) override;
99 int SetReceiveBufferSize(int32 size) override; 99 int SetReceiveBufferSize(int32 size) override;
100 int SetSendBufferSize(int32 size) override; 100 int SetSendBufferSize(int32 size) override;
101 101
102 protected:
103 // SSLClientSocket implementation.
104 void ForceClientCertificateAndKeyForTesting(
105 const scoped_refptr<X509Certificate>& client_cert,
106 scoped_ptr<SSLPrivateKey> client_private_key) override;
107
102 private: 108 private:
103 class PeerCertificateChain; 109 class PeerCertificateChain;
104 class SSLContext; 110 class SSLContext;
105 friend class SSLClientSocket; 111 friend class SSLClientSocket;
106 friend class SSLContext; 112 friend class SSLContext;
107 113
108 int Init(); 114 int Init();
109 void DoReadCallback(int result); 115 void DoReadCallback(int result);
110 void DoWriteCallback(int result); 116 void DoWriteCallback(int result);
111 117
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // pinning failure. It is a (somewhat) human-readable string. 352 // pinning failure. It is a (somewhat) human-readable string.
347 std::string pinning_failure_log_; 353 std::string pinning_failure_log_;
348 354
349 BoundNetLog net_log_; 355 BoundNetLog net_log_;
350 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 356 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
351 }; 357 };
352 358
353 } // namespace net 359 } // namespace net
354 360
355 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 361 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698