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