diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 04:50:24 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 04:50:24 +0000 |
commit | 62b23c2fcde411a2198af403161050906f16f079 (patch) | |
tree | 7d537427f11deef843478e72efc210ca4e613e4b /net/base/cert_verify_proc_openssl.h | |
parent | 305a8b341c1f7e73b48f9f01d0b5cadec5cd7c36 (diff) | |
download | chromium_src-62b23c2fcde411a2198af403161050906f16f079.zip chromium_src-62b23c2fcde411a2198af403161050906f16f079.tar.gz chromium_src-62b23c2fcde411a2198af403161050906f16f079.tar.bz2 |
Move X509Certificate::Verify into CertVerifyProc
With this split, CertVerifyProc is responsible for
interacting with the underlying PKIX path building and
verification library, while X509Certificate is responsible
for parsing certificates with the underlying crypto library
and exposing a common interface for higher-level code such
as UI.
BUG=114343
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/9691054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_verify_proc_openssl.h')
-rw-r--r-- | net/base/cert_verify_proc_openssl.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/base/cert_verify_proc_openssl.h b/net/base/cert_verify_proc_openssl.h new file mode 100644 index 0000000..200451c --- /dev/null +++ b/net/base/cert_verify_proc_openssl.h @@ -0,0 +1,31 @@ +// Copyright (c) 2012 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_PROC_OPENSSL_H_ +#define NET_BASE_CERT_VERIFY_PROC_OPENSSL_H_ +#pragma once + +#include "net/base/cert_verify_proc.h" + +namespace net { + +// Performs certificate path construction and validation using OpenSSL. +class CertVerifyProcOpenSSL : public CertVerifyProc { + public: + CertVerifyProcOpenSSL(); + + protected: + virtual ~CertVerifyProcOpenSSL(); + + private: + virtual int VerifyInternal(X509Certificate* cert, + const std::string& hostname, + int flags, + CRLSet* crl_set, + CertVerifyResult* verify_result) OVERRIDE; +}; + +} // namespace net + +#endif // NET_BASE_CERT_VERIFY_PROC_OPENSSL_H_ |