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

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

Issue 1127623005: Gather metrics classifying the cause of the TLS fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fallback-required
Patch Set: missing header Created 5 years, 7 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_client_socket_nss.h ('k') | net/socket/ssl_client_socket_openssl.h » ('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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived
6 // from AuthCertificateCallback() in 6 // from AuthCertificateCallback() in
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp.
8 8
9 /* ***** BEGIN LICENSE BLOCK ***** 9 /* ***** BEGIN LICENSE BLOCK *****
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #include "net/cert/x509_certificate_net_log_param.h" 99 #include "net/cert/x509_certificate_net_log_param.h"
100 #include "net/cert/x509_util.h" 100 #include "net/cert/x509_util.h"
101 #include "net/cert_net/nss_ocsp.h" 101 #include "net/cert_net/nss_ocsp.h"
102 #include "net/http/transport_security_state.h" 102 #include "net/http/transport_security_state.h"
103 #include "net/log/net_log.h" 103 #include "net/log/net_log.h"
104 #include "net/socket/client_socket_handle.h" 104 #include "net/socket/client_socket_handle.h"
105 #include "net/socket/nss_ssl_util.h" 105 #include "net/socket/nss_ssl_util.h"
106 #include "net/ssl/ssl_cert_request_info.h" 106 #include "net/ssl/ssl_cert_request_info.h"
107 #include "net/ssl/ssl_cipher_suite_names.h" 107 #include "net/ssl/ssl_cipher_suite_names.h"
108 #include "net/ssl/ssl_connection_status_flags.h" 108 #include "net/ssl/ssl_connection_status_flags.h"
109 #include "net/ssl/ssl_failure_state.h"
109 #include "net/ssl/ssl_info.h" 110 #include "net/ssl/ssl_info.h"
110 111
111 #if defined(USE_NSS_CERTS) 112 #if defined(USE_NSS_CERTS)
112 #include <dlfcn.h> 113 #include <dlfcn.h>
113 #endif 114 #endif
114 115
115 namespace net { 116 namespace net {
116 117
117 // State machines are easier to debug if you log state transitions. 118 // State machines are easier to debug if you log state transitions.
118 // Enable these if you want to see what's going on. 119 // Enable these if you want to see what's going on.
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after
3205 3206
3206 scoped_refptr<X509Certificate> 3207 scoped_refptr<X509Certificate>
3207 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { 3208 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const {
3208 return core_->state().server_cert.get(); 3209 return core_->state().server_cert.get();
3209 } 3210 }
3210 3211
3211 ChannelIDService* SSLClientSocketNSS::GetChannelIDService() const { 3212 ChannelIDService* SSLClientSocketNSS::GetChannelIDService() const {
3212 return channel_id_service_; 3213 return channel_id_service_;
3213 } 3214 }
3214 3215
3216 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const {
3217 if (completed_handshake_)
3218 return SSL_FAILURE_NONE;
3219 return SSL_FAILURE_UNKNOWN;
3220 }
3221
3215 } // namespace net 3222 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.h ('k') | net/socket/ssl_client_socket_openssl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698