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

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

Issue 7275027: Detect Kaspersky SSL MITM and give a helpful error message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/base/net_error_list.h ('k') | net/socket/ssl_client_socket_nss.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <certt.h> 9 #include <certt.h>
10 #include <keyt.h> 10 #include <keyt.h>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 // True if NSS has called HandshakeCallback. 217 // True if NSS has called HandshakeCallback.
218 bool handshake_callback_called_; 218 bool handshake_callback_called_;
219 219
220 // True if the SSL handshake has been completed. 220 // True if the SSL handshake has been completed.
221 bool completed_handshake_; 221 bool completed_handshake_;
222 222
223 // True iff we believe that the user has an ESET product intercepting our 223 // True iff we believe that the user has an ESET product intercepting our
224 // HTTPS connections. 224 // HTTPS connections.
225 bool eset_mitm_detected_; 225 bool eset_mitm_detected_;
226 // True iff we believe that the user has a Kaspersky product intercepting our
227 // HTTPS connections.
228 bool kaspersky_mitm_detected_;
226 229
227 // True iff |ssl_host_info_| contained a predicted certificate chain and 230 // True iff |ssl_host_info_| contained a predicted certificate chain and
228 // that we found the prediction to be correct. 231 // that we found the prediction to be correct.
229 bool predicted_cert_chain_correct_; 232 bool predicted_cert_chain_correct_;
230 233
231 // The time when we started waiting for DNSSEC records. 234 // The time when we started waiting for DNSSEC records.
232 base::Time dnssec_wait_start_time_; 235 base::Time dnssec_wait_start_time_;
233 236
234 State next_handshake_state_; 237 State next_handshake_state_;
235 238
(...skipping 15 matching lines...) Expand all
251 // Added the following code Debugging in release mode. 254 // Added the following code Debugging in release mode.
252 mutable base::Lock lock_; 255 mutable base::Lock lock_;
253 // This is mutable so that CalledOnValidThread can set it. 256 // This is mutable so that CalledOnValidThread can set it.
254 // It's guarded by |lock_|. 257 // It's guarded by |lock_|.
255 mutable base::PlatformThreadId valid_thread_id_; 258 mutable base::PlatformThreadId valid_thread_id_;
256 }; 259 };
257 260
258 } // namespace net 261 } // namespace net
259 262
260 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/base/net_error_list.h ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698