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_CERT_CERT_VERIFY_RESULT_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_RESULT_H_ |
6 #define NET_CERT_CERT_VERIFY_RESULT_H_ | 6 #define NET_CERT_CERT_VERIFY_RESULT_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" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/cert/cert_status_flags.h" | 12 #include "net/cert/cert_status_flags.h" |
13 #include "net/cert/ocsp_verify_result.h" | |
13 #include "net/cert/x509_cert_types.h" | 14 #include "net/cert/x509_cert_types.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 | 17 |
17 class X509Certificate; | 18 class X509Certificate; |
18 | 19 |
19 // The result of certificate verification. | 20 // The result of certificate verification. |
20 class NET_EXPORT CertVerifyResult { | 21 class NET_EXPORT CertVerifyResult { |
21 public: | 22 public: |
22 CertVerifyResult(); | 23 CertVerifyResult(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 // meaningless if the certificate was not trusted. | 60 // meaningless if the certificate was not trusted. |
60 bool is_issued_by_known_root; | 61 bool is_issued_by_known_root; |
61 | 62 |
62 // is_issued_by_additional_trust_anchor is true if the root CA used for this | 63 // is_issued_by_additional_trust_anchor is true if the root CA used for this |
63 // verification came from the list of additional trust anchors. | 64 // verification came from the list of additional trust anchors. |
64 bool is_issued_by_additional_trust_anchor; | 65 bool is_issued_by_additional_trust_anchor; |
65 | 66 |
66 // True if a fallback to the common name was used when matching the host | 67 // True if a fallback to the common name was used when matching the host |
67 // name, rather than using the subjectAltName. | 68 // name, rather than using the subjectAltName. |
68 bool common_name_fallback_used; | 69 bool common_name_fallback_used; |
70 | |
71 // Verification of stapled OCSP response, if present. | |
72 OCSPVerifyResult ocsp; | |
Ryan Sleevi
2016/07/18 20:08:08
NAMING: ocsp_status / ocsp_result ? Simply naming
dadrian
2016/07/18 22:23:32
Done. Switched to |ocsp_result|.
| |
69 }; | 73 }; |
70 | 74 |
71 } // namespace net | 75 } // namespace net |
72 | 76 |
73 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ | 77 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ |
OLD | NEW |