Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: net/cert/cert_verify_proc_nss.h

Issue 137553004: NSS Cros multiprofile: trust roots added by a profile shouldn't apply to other profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios fix Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | net/cert/cert_verify_proc_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_proc_nss.h
diff --git a/net/cert/cert_verify_proc_nss.h b/net/cert/cert_verify_proc_nss.h
index f8bb853544e0817200fde60d5ebaacb6cdf5e2b7..d9971cf34c8bf9620200bc2dce3ea89cac3c3f35 100644
--- a/net/cert/cert_verify_proc_nss.h
+++ b/net/cert/cert_verify_proc_nss.h
@@ -5,6 +5,8 @@
#ifndef NET_CERT_CERT_VERIFY_PROC_NSS_H_
#define NET_CERT_CERT_VERIFY_PROC_NSS_H_
+#include <certt.h>
+
#include "net/base/net_export.h"
#include "net/cert/cert_verify_proc.h"
@@ -20,6 +22,17 @@ class NET_EXPORT_PRIVATE CertVerifyProcNSS : public CertVerifyProc {
protected:
virtual ~CertVerifyProcNSS();
+ // Like VerifyInternal, but adds a |chain_verify_callback| to override trust
+ // decisions. See the documentation for CERTChainVerifyCallback and
+ // CERTChainVerifyCallbackFunc in NSS's lib/certdb/certt.h.
+ int VerifyInternalImpl(X509Certificate* cert,
+ const std::string& hostname,
+ int flags,
+ CRLSet* crl_set,
+ const CertificateList& additional_trust_anchors,
+ CERTChainVerifyCallback* chain_verify_callback,
+ CertVerifyResult* verify_result);
+
private:
virtual int VerifyInternal(X509Certificate* cert,
const std::string& hostname,
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | net/cert/cert_verify_proc_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698