| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 namespace net { | 8 namespace net { |
| 9 | 9 |
| 10 // The result of certificate verification. | 10 // The result of certificate verification. Eventually this may contain the |
| 11 // certificate chain that was constructed during certificate verification. |
| 11 class CertVerifyResult { | 12 class CertVerifyResult { |
| 12 public: | 13 public: |
| 13 CertVerifyResult() | 14 CertVerifyResult() { Reset(); } |
| 14 : cert_status(0), has_md5(false), has_md2(false), has_md4(false), | 15 |
| 15 has_md5_ca(false), has_md2_ca(false) { | 16 void Reset() { |
| 17 cert_status = 0; |
| 18 has_md5 = false; |
| 19 has_md2 = false; |
| 20 has_md4 = false; |
| 21 has_md5_ca = false; |
| 22 has_md2_ca = false; |
| 16 } | 23 } |
| 17 | 24 |
| 18 int cert_status; | 25 int cert_status; |
| 19 | 26 |
| 20 // Properties of the certificate chain. | 27 // Properties of the certificate chain. |
| 21 bool has_md5; | 28 bool has_md5; |
| 22 bool has_md2; | 29 bool has_md2; |
| 23 bool has_md4; | 30 bool has_md4; |
| 24 bool has_md5_ca; | 31 bool has_md5_ca; |
| 25 bool has_md2_ca; | 32 bool has_md2_ca; |
| 26 }; | 33 }; |
| 27 | 34 |
| 28 } // namespace net | 35 } // namespace net |
| 29 | 36 |
| 30 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ | 37 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ |
| 31 | 38 |
| OLD | NEW |