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 // fingerprints, in several hash algorithms, of the SubjectPublicKeyInfos |
50 // from the leaf certificate will be the first element of the vector. | 50 // of the chain. The fingerprint from the leaf certificate will be the |
51 std::vector<SHA1Fingerprint> public_key_hashes; | 51 // first element of each sub-vector. |
| 52 // |
| 53 // This is a vector of vectors: Index the outer vector with |
| 54 // FingerprintTag, and then the inner HashValueVectors will be |
| 55 // fingerprints made with the algorithm named by the FingerprintTag. |
| 56 std::vector<HashValueVector> public_key_hashes; |
52 | 57 |
53 // is_issued_by_known_root is true if we recognise the root CA as a standard | 58 // 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 | 59 // 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 | 60 // generated by a MITM proxy whose root has been installed locally. This is |
56 // meaningless if the certificate was not trusted. | 61 // meaningless if the certificate was not trusted. |
57 bool is_issued_by_known_root; | 62 bool is_issued_by_known_root; |
58 }; | 63 }; |
59 | 64 |
60 } // namespace net | 65 } // namespace net |
61 | 66 |
62 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ | 67 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ |
OLD | NEW |