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

Unified Diff: net/socket/ssl_server_socket_openssl.cc

Issue 6276002: Abstracts SHA256 context for NSS / OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0928bbb59d6c49d3eaee8d137cf7ce21f2e390f7
--- /dev/null
+++ b/net/socket/ssl_server_socket_openssl.cc
@@ -0,0 +1,59 @@
+// 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 "base/logging.h"
+#include "net/socket/ssl_server_socket.h"
+
+namespace net {
+
+namespace {
+
+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;
+ }
+};
+
+} // namespace
+
+SSLServerSocket* CreateSSLServerSocket(Socket* socket,
+ X509Certificate* certificate,
+ base::RSAPrivateKey* key,
+ const SSLConfig& ssl_config) {
+ return new SSLServerSocketOpenSSL();
+}
+
+} // namespace net
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698