| OLD | NEW |
| 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_BASE_CERT_VERIFY_RESULT_H_ | 5 #ifndef NET_BASE_CERT_VERIFY_RESULT_H_ |
| 6 #define NET_BASE_CERT_VERIFY_RESULT_H_ | 6 #define NET_BASE_CERT_VERIFY_RESULT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "net/base/cert_status_flags.h" | 10 #include "net/base/cert_status_flags.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // chain. | 38 // chain. |
| 39 CertStatus cert_status; | 39 CertStatus cert_status; |
| 40 | 40 |
| 41 // Properties of the certificate chain. | 41 // Properties of the certificate chain. |
| 42 bool has_md5; | 42 bool has_md5; |
| 43 bool has_md2; | 43 bool has_md2; |
| 44 bool has_md4; | 44 bool has_md4; |
| 45 bool has_md5_ca; | 45 bool has_md5_ca; |
| 46 bool has_md2_ca; | 46 bool has_md2_ca; |
| 47 | 47 |
| 48 // If the certificate was successfully verified then this contains the SHA1 | 48 // If the certificate was successfully verified then this contains the |
| 49 // fingerprints of the SubjectPublicKeyInfos of the chain. The fingerprint | 49 // hashes, in several hash algorithms, of the SubjectPublicKeyInfos of the |
| 50 // from the leaf certificate will be the first element of the vector. | 50 // chain. |
| 51 std::vector<SHA1Fingerprint> public_key_hashes; | 51 HashValueVector public_key_hashes; |
| 52 | 52 |
| 53 // is_issued_by_known_root is true if we recognise the root CA as a standard | 53 // is_issued_by_known_root is true if we recognise the root CA as a standard |
| 54 // root. If it isn't then it's probably the case that this certificate was | 54 // root. If it isn't then it's probably the case that this certificate was |
| 55 // generated by a MITM proxy whose root has been installed locally. This is | 55 // generated by a MITM proxy whose root has been installed locally. This is |
| 56 // meaningless if the certificate was not trusted. | 56 // meaningless if the certificate was not trusted. |
| 57 bool is_issued_by_known_root; | 57 bool is_issued_by_known_root; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace net | 60 } // namespace net |
| 61 | 61 |
| 62 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ | 62 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ |
| OLD | NEW |