OLD | NEW |
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 // TODO(bulach): Provide simple stubs for EnableSSLServerSockets and |
| 9 // CreateSSLServerSocket so that when building for OpenSSL rather than NSS, |
| 10 // so that the code using SSL server sockets can be compiled and disabled |
| 11 // programatically rather than requiring to be carved out from the compile. |
| 12 |
8 namespace net { | 13 namespace net { |
9 | 14 |
10 // TODO(bulach): Rather than disable components which call | 15 void EnableSSLServerSockets() { |
11 // CreateSSLServerSocket when building for OpenSSL rather than NSS, just | 16 NOTIMPLEMENTED(); |
12 // provide a stub for it for now. | 17 } |
| 18 |
13 SSLServerSocket* CreateSSLServerSocket(StreamSocket* socket, | 19 SSLServerSocket* CreateSSLServerSocket(StreamSocket* socket, |
14 X509Certificate* certificate, | 20 X509Certificate* certificate, |
15 crypto::RSAPrivateKey* key, | 21 crypto::RSAPrivateKey* key, |
16 const SSLConfig& ssl_config) { | 22 const SSLConfig& ssl_config) { |
17 NOTIMPLEMENTED(); | 23 NOTIMPLEMENTED(); |
18 delete socket; | 24 delete socket; |
19 return NULL; | 25 return NULL; |
20 } | 26 } |
21 | 27 |
22 } // namespace net | 28 } // namespace net |
OLD | NEW |