| 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 | 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 Loading... |
| 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 |
| OLD | NEW |