| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_ |
| 6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 #include "net/socket/socket.h" | 10 #include "net/socket/socket.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace crypto { |
| 13 class RSAPrivateKey; | 13 class RSAPrivateKey; |
| 14 } // namespace base | 14 } // namespace base |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 class IOBuffer; | 18 class IOBuffer; |
| 19 struct SSLConfig; | 19 struct SSLConfig; |
| 20 class X509Certificate; | 20 class X509Certificate; |
| 21 | 21 |
| 22 // SSLServerSocket takes an already connected socket and performs SSL on top of | 22 // SSLServerSocket takes an already connected socket and performs SSL on top of |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 // Creates an SSL server socket using an already connected socket. A certificate | 40 // Creates an SSL server socket using an already connected socket. A certificate |
| 41 // and private key needs to be provided. | 41 // and private key needs to be provided. |
| 42 // | 42 // |
| 43 // This created server socket will take ownership of |socket|. However |key| | 43 // This created server socket will take ownership of |socket|. However |key| |
| 44 // is copied. | 44 // is copied. |
| 45 // TODO(hclam): Defines ServerSocketFactory to create SSLServerSocket. This will | 45 // TODO(hclam): Defines ServerSocketFactory to create SSLServerSocket. This will |
| 46 // make mocking easier. | 46 // make mocking easier. |
| 47 SSLServerSocket* CreateSSLServerSocket( | 47 SSLServerSocket* CreateSSLServerSocket( |
| 48 Socket* socket, X509Certificate* certificate, base::RSAPrivateKey* key, | 48 Socket* socket, X509Certificate* certificate, crypto::RSAPrivateKey* key, |
| 49 const SSLConfig& ssl_config); | 49 const SSLConfig& ssl_config); |
| 50 | 50 |
| 51 } // namespace net | 51 } // namespace net |
| 52 | 52 |
| 53 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 53 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
| OLD | NEW |