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 3 // found in the LICENSE file. 4 5 #ifndef NET_BASE_CERT_VERIFY_RESULT_H_ 6 #define NET_BASE_CERT_VERIFY_RESULT_H_ 7 8 namespace net { 9 10 // The result of certificate verification. Eventually this may contain the 11 // certificate chain that was constructed during certificate verification. 12 class CertVerifyResult { 13 public: 14 CertVerifyResult() { Reset(); } 15 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; 23 } 24 25 int cert_status; 26 27 // Properties of the certificate chain. 28 bool has_md5; 29 bool has_md2; 30 bool has_md4; 31 bool has_md5_ca; 32 bool has_md2_ca; 33 }; 34 35 } // namespace net 36 37 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ 38