summaryrefslogtreecommitdiffstats
path: root/net/cert/cert_verify_proc_android.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 21:48:11 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 21:48:11 +0000
commit6e7845aed4759ab35d722ce0551b5a90d21e7640 (patch)
treef29a3f007f7ded842d2096446ff7ecaf186cb362 /net/cert/cert_verify_proc_android.h
parenta6b4f91d970aa2b71b0f3552dbc11e94f7650fd5 (diff)
downloadchromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.zip
chromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.tar.gz
chromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.tar.bz2
net: extract net/cert out of net/base
This introduces the following dependency of net/base on things outside: net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h" BUG=70818 Review URL: https://codereview.chromium.org/13006020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cert/cert_verify_proc_android.h')
-rw-r--r--net/cert/cert_verify_proc_android.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/cert/cert_verify_proc_android.h b/net/cert/cert_verify_proc_android.h
new file mode 100644
index 0000000..ca8746b
--- /dev/null
+++ b/net/cert/cert_verify_proc_android.h
@@ -0,0 +1,34 @@
+// 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_CERT_CERT_VERIFY_PROC_ANDROID_H_
+#define NET_CERT_CERT_VERIFY_PROC_ANDROID_H_
+
+#include "net/cert/cert_verify_proc.h"
+
+namespace net {
+
+// Performs certificate verification on Android by calling the platform
+// TrustManager through JNI.
+class CertVerifyProcAndroid : public CertVerifyProc {
+ public:
+ CertVerifyProcAndroid();
+
+ virtual bool SupportsAdditionalTrustAnchors() const OVERRIDE;
+
+ protected:
+ virtual ~CertVerifyProcAndroid();
+
+ private:
+ virtual int VerifyInternal(X509Certificate* cert,
+ const std::string& hostname,
+ int flags,
+ CRLSet* crl_set,
+ const CertificateList& additional_trust_anchors,
+ CertVerifyResult* verify_result) OVERRIDE;
+};
+
+} // namespace net
+
+#endif // NET_CERT_CERT_VERIFY_PROC_ANDROID_H_