| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // meaningless if the certificate was not trusted. | 58 // meaningless if the certificate was not trusted. |
| 58 bool is_issued_by_known_root; | 59 bool is_issued_by_known_root; |
| 59 | 60 |
| 60 // is_issued_by_additional_trust_anchor is true if the root CA used for this | 61 // is_issued_by_additional_trust_anchor is true if the root CA used for this |
| 61 // verification came from the list of additional trust anchors. | 62 // verification came from the list of additional trust anchors. |
| 62 bool is_issued_by_additional_trust_anchor; | 63 bool is_issued_by_additional_trust_anchor; |
| 63 | 64 |
| 64 // True if a fallback to the common name was used when matching the host | 65 // True if a fallback to the common name was used when matching the host |
| 65 // name, rather than using the subjectAltName. | 66 // name, rather than using the subjectAltName. |
| 66 bool common_name_fallback_used; | 67 bool common_name_fallback_used; |
| 68 |
| 69 // Verification of stapled OCSP response, if present. |
| 70 OCSPVerifyResult ocsp; |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 } // namespace net | 73 } // namespace net |
| 70 | 74 |
| 71 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ | 75 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ |
| OLD | NEW |