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

Side by Side 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: expanded test, found one problem Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CERT_CERT_VERIFY_PROC_NSS_H_ 5 #ifndef NET_CERT_CERT_VERIFY_PROC_NSS_H_
6 #define NET_CERT_CERT_VERIFY_PROC_NSS_H_ 6 #define NET_CERT_CERT_VERIFY_PROC_NSS_H_
7 7
8 #include <certt.h>
Ryan Sleevi 2014/01/25 01:50:17 forward declare, you're only using pointer types
mattm 2014/01/28 04:36:44 CERTChainVerifyCallback is an typedef of an unname
9
8 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
9 #include "net/cert/cert_verify_proc.h" 11 #include "net/cert/cert_verify_proc.h"
10 12
11 namespace net { 13 namespace net {
12 14
13 // Performs certificate path construction and validation using NSS's libpkix. 15 // Performs certificate path construction and validation using NSS's libpkix.
14 class NET_EXPORT_PRIVATE CertVerifyProcNSS : public CertVerifyProc { 16 class NET_EXPORT_PRIVATE CertVerifyProcNSS : public CertVerifyProc {
15 public: 17 public:
16 CertVerifyProcNSS(); 18 CertVerifyProcNSS();
17 19
20 // Create a verifier that will allow the specified callback to override
21 // trust decisions. The |chain_verify_callback| must exist for the lifetime of
22 // the CertVerifyProcNSS object.
23 // See the documentation for CERTChainVerifyCallback and
24 // CERTChainVerifyCallbackFunc in NSS's lib/certdb/certt.h.
25 explicit CertVerifyProcNSS(CERTChainVerifyCallback* chain_verify_callback);
26
18 virtual bool SupportsAdditionalTrustAnchors() const OVERRIDE; 27 virtual bool SupportsAdditionalTrustAnchors() const OVERRIDE;
19 28
20 protected: 29 protected:
21 virtual ~CertVerifyProcNSS(); 30 virtual ~CertVerifyProcNSS();
22 31
23 private: 32 private:
24 virtual int VerifyInternal(X509Certificate* cert, 33 virtual int VerifyInternal(X509Certificate* cert,
25 const std::string& hostname, 34 const std::string& hostname,
26 int flags, 35 int flags,
27 CRLSet* crl_set, 36 CRLSet* crl_set,
28 const CertificateList& additional_trust_anchors, 37 const CertificateList& additional_trust_anchors,
29 CertVerifyResult* verify_result) OVERRIDE; 38 CertVerifyResult* verify_result) OVERRIDE;
39
40 CERTChainVerifyCallback* chain_verify_callback_;
30 }; 41 };
31 42
32 } // namespace net 43 } // namespace net
33 44
34 #endif // NET_CERT_CERT_VERIFY_PROC_NSS_H_ 45 #endif // NET_CERT_CERT_VERIFY_PROC_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698