| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // |
| 5 // NOTE: This class is provided to support existing Chromium consumers; it is |
| 6 // NOT intended for use in NEW code. Configuring a TLS server correctly is a |
| 7 // security-sensitive activity with many subtle nuances, and thus care should be |
| 8 // taken to discuss with //net/OWNERS before any new usages. |
| 9 // |
| 10 // As such, this header should be treated as an internal implementation detail |
| 11 // of //net (where it's used for some unit test infrastructure), not as |
| 12 // appropriate for general use. |
| 13 // |
| 14 // See https://crbug.com/621176 for more details. |
| 4 | 15 |
| 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_ | 16 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_ |
| 6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ | 17 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ |
| 7 | 18 |
| 8 #include <memory> | 19 #include <memory> |
| 9 | 20 |
| 10 #include "net/base/completion_callback.h" | 21 #include "net/base/completion_callback.h" |
| 11 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
| 12 #include "net/socket/ssl_socket.h" | 23 #include "net/socket/ssl_socket.h" |
| 13 #include "net/socket/stream_socket.h" | 24 #include "net/socket/stream_socket.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // The |key| and |ssl_config| parameters are copied. | 75 // The |key| and |ssl_config| parameters are copied. |
| 65 // | 76 // |
| 66 NET_EXPORT std::unique_ptr<SSLServerContext> CreateSSLServerContext( | 77 NET_EXPORT std::unique_ptr<SSLServerContext> CreateSSLServerContext( |
| 67 X509Certificate* certificate, | 78 X509Certificate* certificate, |
| 68 const crypto::RSAPrivateKey& key, | 79 const crypto::RSAPrivateKey& key, |
| 69 const SSLServerConfig& ssl_config); | 80 const SSLServerConfig& ssl_config); |
| 70 | 81 |
| 71 } // namespace net | 82 } // namespace net |
| 72 | 83 |
| 73 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_ | 84 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_ |
| OLD | NEW |