Home | History | Annotate | Download | only in socket
      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
      3 // found in the LICENSE file.
      4 
      5 #include "base/logging.h"
      6 #include "net/socket/ssl_server_socket.h"
      7 
      8 namespace net {
      9 
     10 namespace {
     11 
     12 class SSLServerSocketOpenSSL : public SSLServerSocket {
     13  public:
     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,
     54                                        crypto::RSAPrivateKey* key,
     55                                        const SSLConfig& ssl_config) {
     56   return new SSLServerSocketOpenSSL();
     57 }
     58 
     59 }  // namespace net
     60