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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… 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
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 <utility> 9 #include <utility>
10 10
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "crypto/openssl_util.h" 14 #include "crypto/openssl_util.h"
15 #include "crypto/rsa_private_key.h" 15 #include "crypto/rsa_private_key.h"
16 #include "crypto/scoped_openssl_types.h" 16 #include "crypto/scoped_openssl_types.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/cert/cert_verify_result.h" 18 #include "net/cert/cert_verify_result.h"
19 #include "net/cert/client_cert_verifier.h" 19 #include "net/cert/client_cert_verifier.h"
20 #include "net/cert/x509_util_openssl.h" 20 #include "net/cert/x509_util_openssl.h"
21 #include "net/log/net_log_event_type.h" 21 #include "net/log/net_log_event_type.h"
22 #include "net/log/net_log_with_source.h"
22 #include "net/ssl/openssl_ssl_util.h" 23 #include "net/ssl/openssl_ssl_util.h"
23 #include "net/ssl/ssl_connection_status_flags.h" 24 #include "net/ssl/ssl_connection_status_flags.h"
24 #include "net/ssl/ssl_info.h" 25 #include "net/ssl/ssl_info.h"
25 26
26 #define GotoState(s) next_handshake_state_ = s 27 #define GotoState(s) next_handshake_state_ = s
27 28
28 namespace net { 29 namespace net {
29 30
30 namespace { 31 namespace {
31 32
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 SSL* ssl = SSL_new(ssl_ctx_.get()); 948 SSL* ssl = SSL_new(ssl_ctx_.get());
948 return std::unique_ptr<SSLServerSocket>( 949 return std::unique_ptr<SSLServerSocket>(
949 new SSLServerSocketImpl(std::move(socket), ssl)); 950 new SSLServerSocketImpl(std::move(socket), ssl));
950 } 951 }
951 952
952 void EnableSSLServerSockets() { 953 void EnableSSLServerSockets() {
953 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit(). 954 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit().
954 } 955 }
955 956
956 } // namespace net 957 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698