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

Side by Side Diff: net/socket/ssl_server_socket.h

Issue 1632913002: Add a note to avoid SSLServerSocket in new code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a note to avoid SSLServerSocket in new code. Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698