OLD | NEW |
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/cert/cert_verify_proc.h" | 8 #include "net/cert/cert_verify_proc.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 // Performs certificate path construction and validation using OpenSSL. | 12 // Performs certificate path construction and validation using OpenSSL. |
13 class CertVerifyProcOpenSSL : public CertVerifyProc { | 13 class CertVerifyProcOpenSSL : public CertVerifyProc { |
14 public: | 14 public: |
15 CertVerifyProcOpenSSL(); | 15 CertVerifyProcOpenSSL(); |
16 | 16 |
17 virtual bool SupportsAdditionalTrustAnchors() const OVERRIDE; | 17 virtual bool SupportsAdditionalTrustAnchors() const override; |
18 | 18 |
19 protected: | 19 protected: |
20 virtual ~CertVerifyProcOpenSSL(); | 20 virtual ~CertVerifyProcOpenSSL(); |
21 | 21 |
22 private: | 22 private: |
23 virtual int VerifyInternal(X509Certificate* cert, | 23 virtual int VerifyInternal(X509Certificate* cert, |
24 const std::string& hostname, | 24 const std::string& hostname, |
25 int flags, | 25 int flags, |
26 CRLSet* crl_set, | 26 CRLSet* crl_set, |
27 const CertificateList& additional_trust_anchors, | 27 const CertificateList& additional_trust_anchors, |
28 CertVerifyResult* verify_result) OVERRIDE; | 28 CertVerifyResult* verify_result) override; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace net | 31 } // namespace net |
32 | 32 |
33 #endif // NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_ | 33 #endif // NET_CERT_CERT_VERIFY_PROC_OPENSSL_H_ |
OLD | NEW |