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