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

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

Issue 2670643008: Move CertVerifyProcMac unit-tests to their own file. (Closed)
Patch Set: Rebase + add missing include Created 3 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 unified diff | Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/cert/cert_verify_proc_mac_unittest.cc » ('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_MAC_H_ 5 #ifndef NET_CERT_CERT_VERIFY_PROC_MAC_H_
6 #define NET_CERT_CERT_VERIFY_PROC_MAC_H_ 6 #define NET_CERT_CERT_VERIFY_PROC_MAC_H_
7 7
8 #include "net/base/net_export.h"
8 #include "net/cert/cert_verify_proc.h" 9 #include "net/cert/cert_verify_proc.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 // Performs certificate path construction and validation using OS X's 13 // Performs certificate path construction and validation using OS X's
13 // Security.framework. 14 // Security.framework.
14 class CertVerifyProcMac : public CertVerifyProc { 15 class NET_EXPORT_PRIVATE CertVerifyProcMac : public CertVerifyProc {
15 public: 16 public:
16 CertVerifyProcMac(); 17 CertVerifyProcMac();
17 18
18 bool SupportsAdditionalTrustAnchors() const override; 19 bool SupportsAdditionalTrustAnchors() const override;
19 bool SupportsOCSPStapling() const override; 20 bool SupportsOCSPStapling() const override;
20 21
21 protected: 22 protected:
22 ~CertVerifyProcMac() override; 23 ~CertVerifyProcMac() override;
23 24
24 private: 25 private:
25 int VerifyInternal(X509Certificate* cert, 26 int VerifyInternal(X509Certificate* cert,
26 const std::string& hostname, 27 const std::string& hostname,
27 const std::string& ocsp_response, 28 const std::string& ocsp_response,
28 int flags, 29 int flags,
29 CRLSet* crl_set, 30 CRLSet* crl_set,
30 const CertificateList& additional_trust_anchors, 31 const CertificateList& additional_trust_anchors,
31 CertVerifyResult* verify_result) override; 32 CertVerifyResult* verify_result) override;
32 }; 33 };
33 34
34 } // namespace net 35 } // namespace net
35 36
36 #endif // NET_CERT_CERT_VERIFY_PROC_MAC_H_ 37 #endif // NET_CERT_CERT_VERIFY_PROC_MAC_H_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/cert/cert_verify_proc_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698