Chromium Code Reviews| 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" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 } | 30 } |
| 31 | 31 |
| 32 // The certificate and chain that was constructed during verification. | 32 // The certificate and chain that was constructed during verification. |
| 33 // Note that the though the verified certificate will match the originally | 33 // Note that the though the verified certificate will match the originally |
| 34 // supplied certificate, the intermediate certificates stored within may | 34 // supplied certificate, the intermediate certificates stored within may |
| 35 // be substantially different. In the event of a verification failure, this | 35 // be substantially different. In the event of a verification failure, this |
| 36 // will contain the chain as supplied by the server. This may be NULL if | 36 // will contain the chain as supplied by the server. This may be NULL if |
| 37 // running within the sandbox. | 37 // running within the sandbox. |
| 38 scoped_refptr<X509Certificate> verified_cert; | 38 scoped_refptr<X509Certificate> verified_cert; |
| 39 | 39 |
| 40 // The certificate and chain as sent by the server. | |
| 41 scoped_refptr<X509Certificate> unverified_server_cert; | |
|
Ryan Sleevi
2015/02/25 23:15:41
This doesn't seem like it belongs in the CertVerif
| |
| 42 | |
| 40 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h. Note that | 43 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h. Note that |
| 41 // these status flags apply to the certificate chain returned in | 44 // these status flags apply to the certificate chain returned in |
| 42 // |verified_cert|, rather than the originally supplied certificate | 45 // |verified_cert|, rather than the originally supplied certificate |
| 43 // chain. | 46 // chain. |
| 44 CertStatus cert_status; | 47 CertStatus cert_status; |
| 45 | 48 |
| 46 // Properties of the certificate chain. | 49 // Properties of the certificate chain. |
| 47 bool has_md2; | 50 bool has_md2; |
| 48 bool has_md4; | 51 bool has_md4; |
| 49 bool has_md5; | 52 bool has_md5; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 65 bool is_issued_by_additional_trust_anchor; | 68 bool is_issued_by_additional_trust_anchor; |
| 66 | 69 |
| 67 // True if a fallback to the common name was used when matching the host | 70 // True if a fallback to the common name was used when matching the host |
| 68 // name, rather than using the subjectAltName. | 71 // name, rather than using the subjectAltName. |
| 69 bool common_name_fallback_used; | 72 bool common_name_fallback_used; |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 } // namespace net | 75 } // namespace net |
| 73 | 76 |
| 74 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ | 77 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ |
| OLD | NEW |