Index: net/socket/ssl_server_socket_openssl.cc |
diff --git a/net/socket/ssl_server_socket_openssl.cc b/net/socket/ssl_server_socket_openssl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2bc8c3b1a9f56a86815ee16c6ade8b20243efd65 |
--- /dev/null |
+++ b/net/socket/ssl_server_socket_openssl.cc |
@@ -0,0 +1,55 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/socket/ssl_server_socket.h" |
lzheng
2011/01/24 18:46:35
nit: put this behind "base/logging.h"
bulach
2011/01/24 20:54:33
Done.
|
+ |
+#include "base/logging.h" |
+ |
+namespace net { |
+ |
+class SSLServerSocketOpenSSL : public SSLServerSocket { |
+ public: |
+ virtual ~SSLServerSocketOpenSSL() {} |
+ |
+ // SSLServerSocket |
+ virtual int Accept(CompletionCallback* callback) { |
+ // TODO(bulach): implement. |
+ NOTIMPLEMENTED(); |
+ return 0; |
+ } |
+ |
+ // Socket |
+ virtual int Read(IOBuffer* buf, int buf_len, |
+ CompletionCallback* callback) { |
+ // TODO(bulach): implement. |
+ NOTIMPLEMENTED(); |
+ return 0; |
+ } |
+ virtual int Write(IOBuffer* buf, int buf_len, |
+ CompletionCallback* callback) { |
+ // TODO(bulach): implement. |
+ NOTIMPLEMENTED(); |
+ return 0; |
+ } |
+ |
+ virtual bool SetReceiveBufferSize(int32 size) { |
+ // TODO(bulach): implement. |
+ NOTIMPLEMENTED(); |
+ return false; |
+ } |
+ |
+ virtual bool SetSendBufferSize(int32 size) { |
+ // TODO(bulach): implement. |
+ NOTIMPLEMENTED(); |
+ return false; |
+ } |
+}; |
+ |
+SSLServerSocket* CreateSSLServerSocket( |
+ Socket* socket, X509Certificate* certificate, base::RSAPrivateKey* key, |
wtc
2011/01/21 22:48:51
List one parameter per line.
bulach
2011/01/24 20:54:33
Done.
|
+ const SSLConfig& ssl_config) { |
+ return new SSLServerSocketOpenSSL(); |
+} |
+ |
+} // namespace net |