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

Side by Side Diff: net/socket/ssl_server_socket_openssl.cc

Issue 7054010: Update SSLServerSocket to provide the net::StreamSocket interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix net_unittests and rename things consistently to "handshake". Created 9 years, 6 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
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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "net/socket/ssl_server_socket.h" 6 #include "net/socket/ssl_server_socket.h"
7 7
8 namespace net { 8 namespace net {
9 9
10 namespace { 10 // TODO(bulach): Rather than disable components which call
11 11 // CreateSSLServerSocket when building for OpenSSL rather than NSS, just
12 class SSLServerSocketOpenSSL : public SSLServerSocket { 12 // provide a stub for it for now.
13 public: 13 SSLServerSocket* CreateSSLServerSocket(StreamSocket* socket,
14 virtual ~SSLServerSocketOpenSSL() {}
15
16 // SSLServerSocket
17 virtual int Accept(CompletionCallback* callback) {
18 // TODO(bulach): implement.
19 NOTIMPLEMENTED();
20 return 0;
21 }
22
23 // Socket
24 virtual int Read(IOBuffer* buf, int buf_len,
25 CompletionCallback* callback) {
26 // TODO(bulach): implement.
27 NOTIMPLEMENTED();
28 return 0;
29 }
30 virtual int Write(IOBuffer* buf, int buf_len,
31 CompletionCallback* callback) {
32 // TODO(bulach): implement.
33 NOTIMPLEMENTED();
34 return 0;
35 }
36
37 virtual bool SetReceiveBufferSize(int32 size) {
38 // TODO(bulach): implement.
39 NOTIMPLEMENTED();
40 return false;
41 }
42
43 virtual bool SetSendBufferSize(int32 size) {
44 // TODO(bulach): implement.
45 NOTIMPLEMENTED();
46 return false;
47 }
48 };
49
50 } // namespace
51
52 SSLServerSocket* CreateSSLServerSocket(Socket* socket,
53 X509Certificate* certificate, 14 X509Certificate* certificate,
54 crypto::RSAPrivateKey* key, 15 crypto::RSAPrivateKey* key,
55 const SSLConfig& ssl_config) { 16 const SSLConfig& ssl_config) {
56 return new SSLServerSocketOpenSSL(); 17 NOTIMPLEMENTED();
18 delete socket;
19 return NULL;
57 } 20 }
58 21
59 } // namespace net 22 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698