OLD | NEW |
| (Empty) |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_CERT_CERT_VERIFY_PROC_IOS_H_ | |
6 #define NET_CERT_CERT_VERIFY_PROC_IOS_H_ | |
7 | |
8 #include "net/cert/cert_verify_proc.h" | |
9 | |
10 namespace net { | |
11 | |
12 // Performs certificate path construction and validation using iOS's | |
13 // Security.framework. | |
14 class CertVerifyProcIOS : public CertVerifyProc { | |
15 public: | |
16 CertVerifyProcIOS(); | |
17 | |
18 bool SupportsAdditionalTrustAnchors() const override; | |
19 bool SupportsOCSPStapling() const override; | |
20 | |
21 protected: | |
22 ~CertVerifyProcIOS() override; | |
23 | |
24 private: | |
25 int VerifyInternal(X509Certificate* cert, | |
26 const std::string& hostname, | |
27 const std::string& ocsp_response, | |
28 int flags, | |
29 CRLSet* crl_set, | |
30 const CertificateList& additional_trust_anchors, | |
31 CertVerifyResult* verify_result) override; | |
32 }; | |
33 | |
34 } // namespace net | |
35 | |
36 #endif // NET_CERT_CERT_VERIFY_PROC_IOS_H_ | |
OLD | NEW |