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

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

Issue 2629093002: Parameterize the CertVerifyProc tests so they can be run with (Closed)
Patch Set: Fix headers Created 3 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
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_OPENSSL_H_ 5 #ifndef NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_
6 #define NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_ 6 #define NET_CERT_CERT_VERIFY_PROC_OPENSSL_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 OpenSSL. 13 // Performs certificate path construction and validation using OpenSSL.
13 class CertVerifyProcOpenSSL : public CertVerifyProc { 14 class NET_EXPORT_PRIVATE CertVerifyProcOpenSSL : public CertVerifyProc {
14 public: 15 public:
15 CertVerifyProcOpenSSL(); 16 CertVerifyProcOpenSSL();
16 17
17 bool SupportsAdditionalTrustAnchors() const override; 18 bool SupportsAdditionalTrustAnchors() const override;
18 bool SupportsOCSPStapling() const override; 19 bool SupportsOCSPStapling() const override;
19 20
20 protected: 21 protected:
21 ~CertVerifyProcOpenSSL() override; 22 ~CertVerifyProcOpenSSL() override;
22 23
23 private: 24 private:
24 int VerifyInternal(X509Certificate* cert, 25 int VerifyInternal(X509Certificate* cert,
25 const std::string& hostname, 26 const std::string& hostname,
26 const std::string& ocsp_response, 27 const std::string& ocsp_response,
27 int flags, 28 int flags,
28 CRLSet* crl_set, 29 CRLSet* crl_set,
29 const CertificateList& additional_trust_anchors, 30 const CertificateList& additional_trust_anchors,
30 CertVerifyResult* verify_result) override; 31 CertVerifyResult* verify_result) override;
31 }; 32 };
32 33
33 } // namespace net 34 } // namespace net
34 35
35 #endif // NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_ 36 #endif // NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698