| 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 27 matching lines...) Expand all Loading... |
| 38 void Reset(); | 38 void Reset(); |
| 39 | 39 |
| 40 bool is_valid() const { return cert.get() != NULL; } | 40 bool is_valid() const { return cert.get() != NULL; } |
| 41 | 41 |
| 42 // Adds the specified |error| to the cert status. | 42 // Adds the specified |error| to the cert status. |
| 43 void SetCertError(int error); | 43 void SetCertError(int error); |
| 44 | 44 |
| 45 // The SSL certificate. | 45 // The SSL certificate. |
| 46 scoped_refptr<X509Certificate> cert; | 46 scoped_refptr<X509Certificate> cert; |
| 47 | 47 |
| 48 // The SSL certificate as received by the client. Can be different |
| 49 // from |cert|, which is the chain as built by the client during |
| 50 // validation. |
| 51 scoped_refptr<X509Certificate> unverified_cert; |
| 52 |
| 48 // Bitmask of status info of |cert|, representing, for example, known errors | 53 // Bitmask of status info of |cert|, representing, for example, known errors |
| 49 // and extended validation (EV) status. | 54 // and extended validation (EV) status. |
| 50 // See cert_status_flags.h for values. | 55 // See cert_status_flags.h for values. |
| 51 CertStatus cert_status; | 56 CertStatus cert_status; |
| 52 | 57 |
| 53 // The security strength, in bits, of the SSL cipher suite. | 58 // The security strength, in bits, of the SSL cipher suite. |
| 54 // 0 means the connection is not encrypted. | 59 // 0 means the connection is not encrypted. |
| 55 // -1 means the security strength is unknown. | 60 // -1 means the security strength is unknown. |
| 56 int security_bits; | 61 int security_bits; |
| 57 | 62 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 83 std::string pinning_failure_log; | 88 std::string pinning_failure_log; |
| 84 | 89 |
| 85 // List of SignedCertificateTimestamps and their corresponding validation | 90 // List of SignedCertificateTimestamps and their corresponding validation |
| 86 // status. | 91 // status. |
| 87 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 92 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 88 }; | 93 }; |
| 89 | 94 |
| 90 } // namespace net | 95 } // namespace net |
| 91 | 96 |
| 92 #endif // NET_SSL_SSL_INFO_H_ | 97 #endif // NET_SSL_SSL_INFO_H_ |
| OLD | NEW |