OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ | 5 #ifndef NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ |
6 #define NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ | 6 #define NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ |
7 | 7 |
8 // The UpdateConnectionTypeHistograms function collects statistics related | 8 // The UpdateConnectionTypeHistograms function collects statistics related |
9 // to the number of MD5 certificates that our users are encountering. The | 9 // to the number of MD5 certificates that our users are encountering. The |
10 // information will help us decide when it is fine for browsers to stop | 10 // information will help us decide when it is fine for browsers to stop |
11 // supporting MD5 certificates, in light of the recent MD5 certificate | 11 // supporting MD5 certificates, in light of the recent MD5 certificate |
12 // collision attack (see "MD5 considered harmful today: Creating a rogue CA | 12 // collision attack (see "MD5 considered harmful today: Creating a rogue CA |
13 // certificate" at http://www.win.tue.nl/hashclash/rogue-ca/). | 13 // certificate" at http://www.win.tue.nl/hashclash/rogue-ca/). |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 enum ConnectionType { | 17 enum ConnectionType { |
18 CONNECTION_ANY = 0, // Any connection, SSL or not | 18 CONNECTION_ANY = 0, // Any connection, SSL or not |
19 CONNECTION_SSL = 1, // An SSL connection | 19 CONNECTION_SSL = 1, // An SSL connection |
20 CONNECTION_SSL_MD5 = 2, // An SSL connection with an MD5 certificate in | 20 CONNECTION_SSL_MD5 = 2, // An SSL connection with an MD5 certificate in |
21 // the certificate chain (excluding root) | 21 // the certificate chain (excluding root) |
22 CONNECTION_SSL_MD2 = 3, // An SSL connection with an MD2 certificate in | 22 CONNECTION_SSL_MD2 = 3, // An SSL connection with an MD2 certificate in |
23 // the certificate chain (excluding root) | 23 // the certificate chain (excluding root) |
24 CONNECTION_SSL_MD4 = 4, // An SSL connection with an MD4 certificate in | 24 CONNECTION_SSL_MD4 = 4, // An SSL connection with an MD4 certificate in |
25 // the certificate chain (excluding root) | 25 // the certificate chain (excluding root) |
| 26 CONNECTION_SSL_MD5_CA = 5, // An SSL connection with an MD5 CA certificate |
| 27 // in the certificate chain (excluding root) |
26 NUM_OF_CONNECTION_TYPES | 28 NUM_OF_CONNECTION_TYPES |
27 }; | 29 }; |
28 | 30 |
29 void UpdateConnectionTypeHistograms(ConnectionType type); | 31 void UpdateConnectionTypeHistograms(ConnectionType type); |
30 | 32 |
31 } // namespace net | 33 } // namespace net |
32 | 34 |
33 #endif // NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ | 35 #endif // NET_BASE_CONNECTION_TYPE_HISTOGRAMS_H_ |
OLD | NEW |