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

Side by Side Diff: net/socket/ssl_server_socket_impl.cc

Issue 2405403002: Remove net::EnableSSLServerSockets. (Closed)
Patch Set: Created 4 years, 2 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 | « net/socket/ssl_server_socket.h ('k') | net/test/run_all_unittests.cc » ('j') | 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 4
5 #include "net/socket/ssl_server_socket_impl.h" 5 #include "net/socket/ssl_server_socket_impl.h"
6 6
7 #include <openssl/err.h> 7 #include <openssl/err.h>
8 #include <openssl/ssl.h> 8 #include <openssl/ssl.h>
9 #include <openssl/x509.h> 9 #include <openssl/x509.h>
10 #include <utility> 10 #include <utility>
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 943
944 SSLServerContextImpl::~SSLServerContextImpl() {} 944 SSLServerContextImpl::~SSLServerContextImpl() {}
945 945
946 std::unique_ptr<SSLServerSocket> SSLServerContextImpl::CreateSSLServerSocket( 946 std::unique_ptr<SSLServerSocket> SSLServerContextImpl::CreateSSLServerSocket(
947 std::unique_ptr<StreamSocket> socket) { 947 std::unique_ptr<StreamSocket> socket) {
948 bssl::UniquePtr<SSL> ssl(SSL_new(ssl_ctx_.get())); 948 bssl::UniquePtr<SSL> ssl(SSL_new(ssl_ctx_.get()));
949 return std::unique_ptr<SSLServerSocket>( 949 return std::unique_ptr<SSLServerSocket>(
950 new SSLServerSocketImpl(std::move(socket), std::move(ssl))); 950 new SSLServerSocketImpl(std::move(socket), std::move(ssl)));
951 } 951 }
952 952
953 void EnableSSLServerSockets() {
954 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit().
955 }
956
957 } // namespace net 953 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket.h ('k') | net/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698