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 #ifndef NET_SSL_SSL_INFO_H_ | 5 #ifndef NET_SSL_SSL_INFO_H_ |
6 #define NET_SSL_SSL_INFO_H_ | 6 #define NET_SSL_SSL_INFO_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 // Bitmask of status info of |cert|, representing, for example, known errors | 53 // Bitmask of status info of |cert|, representing, for example, known errors |
54 // and extended validation (EV) status. | 54 // and extended validation (EV) status. |
55 // See cert_status_flags.h for values. | 55 // See cert_status_flags.h for values. |
56 CertStatus cert_status; | 56 CertStatus cert_status; |
57 | 57 |
58 // The security strength, in bits, of the SSL cipher suite. | 58 // The security strength, in bits, of the SSL cipher suite. |
59 // 0 means the connection is not encrypted. | 59 // 0 means the connection is not encrypted. |
60 // -1 means the security strength is unknown. | 60 // -1 means the security strength is unknown. |
61 int security_bits; | 61 int security_bits; |
62 | 62 |
63 // Security information of the SSL connection handshake. | |
64 // The meaning depends on the cipher used, see |SSL_SESSION|'s | |
65 // key_exchange_info for more information. | |
66 // A zero indicates that the value is unknown. | |
mmenke
2015/08/26 15:28:37
Is there a case where for some cipher, an actual v
sigbjorn
2015/08/26 15:46:15
No. It will hold either a bit strength (which nece
| |
67 int key_exchange_info; | |
68 | |
63 // Information about the SSL connection itself. See | 69 // Information about the SSL connection itself. See |
64 // ssl_connection_status_flags.h for values. The protocol version, | 70 // ssl_connection_status_flags.h for values. The protocol version, |
65 // ciphersuite, and compression in use are encoded within. | 71 // ciphersuite, and compression in use are encoded within. |
66 int connection_status; | 72 int connection_status; |
67 | 73 |
68 // If the certificate is valid, then this is true iff it was rooted at a | 74 // If the certificate is valid, then this is true iff it was rooted at a |
69 // standard CA root. (As opposed to a user-installed root.) | 75 // standard CA root. (As opposed to a user-installed root.) |
70 bool is_issued_by_known_root; | 76 bool is_issued_by_known_root; |
71 | 77 |
72 // True if a client certificate was sent to the server. Note that sending | 78 // True if a client certificate was sent to the server. Note that sending |
(...skipping 15 matching lines...) Expand all Loading... | |
88 std::string pinning_failure_log; | 94 std::string pinning_failure_log; |
89 | 95 |
90 // List of SignedCertificateTimestamps and their corresponding validation | 96 // List of SignedCertificateTimestamps and their corresponding validation |
91 // status. | 97 // status. |
92 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 98 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
93 }; | 99 }; |
94 | 100 |
95 } // namespace net | 101 } // namespace net |
96 | 102 |
97 #endif // NET_SSL_SSL_INFO_H_ | 103 #endif // NET_SSL_SSL_INFO_H_ |
OLD | NEW |