diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-03 16:51:15 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-03 16:51:15 +0000 |
commit | dedb594391d9ec31a6eac1eccbdd754ac2ce5ed7 (patch) | |
tree | cac5603ceb1a8dd526624c428d6ffd6eafaf3de5 /net/base/cert_verify_result.h | |
parent | 7f969d6b73d925d306032565179d6b2109646ee0 (diff) | |
download | chromium_src-dedb594391d9ec31a6eac1eccbdd754ac2ce5ed7.zip chromium_src-dedb594391d9ec31a6eac1eccbdd754ac2ce5ed7.tar.gz chromium_src-dedb594391d9ec31a6eac1eccbdd754ac2ce5ed7.tar.bz2 |
Move certificate verification off the IO thread.
Move the MapNetErrorToCertStatus and MapCertStatusToNetError
functions to cert_status_flags.h so they can be shared with
Mac and Linux code.
Move the certificate verification function to the
X509Certificate class. Right now X509Certificate::Verify is
only implemented on Windows.
R=eroman
BUG=3592
Review URL: http://codereview.chromium.org/14915
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_verify_result.h')
-rw-r--r-- | net/base/cert_verify_result.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/base/cert_verify_result.h b/net/base/cert_verify_result.h new file mode 100644 index 0000000..825ce4c --- /dev/null +++ b/net/base/cert_verify_result.h @@ -0,0 +1,31 @@ +// 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. +class CertVerifyResult { + public: + CertVerifyResult() + : 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_ + |