summaryrefslogtreecommitdiffstats
path: root/net/base/cert_verify_result.h
blob: 9ab48b93ef2e103e1af63cdf2c646b9f0e3f9e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_CERT_VERIFY_RESULT_H_
#define NET_BASE_CERT_VERIFY_RESULT_H_

namespace net {

// The result of certificate verification.  Eventually this may contain the
// certificate chain that was constructed during certificate verification.
class CertVerifyResult {
 public:
  CertVerifyResult() { Reset(); }

  void Reset() {
    cert_status = 0;
    has_md5 = false;
    has_md2 = false;
    has_md4 = false;
    has_md5_ca = false;
    has_md2_ca = false;
  }

  int cert_status;

  // Properties of the certificate chain.
  bool has_md5;
  bool has_md2;
  bool has_md4;
  bool has_md5_ca;
  bool has_md2_ca;
};

}  // namespace net

#endif  // NET_BASE_CERT_VERIFY_RESULT_H_