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

Side by Side Diff: net/cert/cert_verify_proc_nss.h

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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
« no previous file with comments | « net/cert/cert_verify_proc_mac.h ('k') | net/cert/cert_verify_proc_openssl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 8 #include <certt.h>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/cert/cert_verify_proc.h" 11 #include "net/cert/cert_verify_proc.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // Performs certificate path construction and validation using NSS's libpkix. 15 // Performs certificate path construction and validation using NSS's libpkix.
16 class NET_EXPORT_PRIVATE CertVerifyProcNSS : public CertVerifyProc { 16 class NET_EXPORT_PRIVATE CertVerifyProcNSS : public CertVerifyProc {
17 public: 17 public:
18 CertVerifyProcNSS(); 18 CertVerifyProcNSS();
19 19
20 virtual bool SupportsAdditionalTrustAnchors() const OVERRIDE; 20 virtual bool SupportsAdditionalTrustAnchors() const override;
21 21
22 protected: 22 protected:
23 virtual ~CertVerifyProcNSS(); 23 virtual ~CertVerifyProcNSS();
24 24
25 // Like VerifyInternal, but adds a |chain_verify_callback| to override trust 25 // Like VerifyInternal, but adds a |chain_verify_callback| to override trust
26 // decisions. See the documentation for CERTChainVerifyCallback and 26 // decisions. See the documentation for CERTChainVerifyCallback and
27 // CERTChainVerifyCallbackFunc in NSS's lib/certdb/certt.h. 27 // CERTChainVerifyCallbackFunc in NSS's lib/certdb/certt.h.
28 int VerifyInternalImpl(X509Certificate* cert, 28 int VerifyInternalImpl(X509Certificate* cert,
29 const std::string& hostname, 29 const std::string& hostname,
30 int flags, 30 int flags,
31 CRLSet* crl_set, 31 CRLSet* crl_set,
32 const CertificateList& additional_trust_anchors, 32 const CertificateList& additional_trust_anchors,
33 CERTChainVerifyCallback* chain_verify_callback, 33 CERTChainVerifyCallback* chain_verify_callback,
34 CertVerifyResult* verify_result); 34 CertVerifyResult* verify_result);
35 35
36 private: 36 private:
37 virtual int VerifyInternal(X509Certificate* cert, 37 virtual int VerifyInternal(X509Certificate* cert,
38 const std::string& hostname, 38 const std::string& hostname,
39 int flags, 39 int flags,
40 CRLSet* crl_set, 40 CRLSet* crl_set,
41 const CertificateList& additional_trust_anchors, 41 const CertificateList& additional_trust_anchors,
42 CertVerifyResult* verify_result) OVERRIDE; 42 CertVerifyResult* verify_result) override;
43 }; 43 };
44 44
45 } // namespace net 45 } // namespace net
46 46
47 #endif // NET_CERT_CERT_VERIFY_PROC_NSS_H_ 47 #endif // NET_CERT_CERT_VERIFY_PROC_NSS_H_
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_mac.h ('k') | net/cert/cert_verify_proc_openssl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698