OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_BASE_CERT_VERIFY_PROC_OPENSSL_H_ |
| 6 #define NET_BASE_CERT_VERIFY_PROC_OPENSSL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "net/base/multi_threaded_cert_verifier.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // CertVerifyProcMac is a VerifyProc implementation that verifies certificates |
| 14 // using OpenSSL for path building and verification. |
| 15 class CertVerifyProcOpenSSL : public MultiThreadedCertVerifier::VerifyProc { |
| 16 public: |
| 17 CertVerifyProcOpenSSL(); |
| 18 |
| 19 // MultiThreadedCertVerifier::VerifyProc implementation. |
| 20 virtual int Verify(X509Certificate* cert, |
| 21 const std::string& hostname, |
| 22 int flags, |
| 23 CRLSet* crl_set, |
| 24 CertVerifyResult* verify_result) OVERRIDE; |
| 25 |
| 26 protected: |
| 27 virtual ~CertVerifyProcOpenSSL(); |
| 28 }; |
| 29 |
| 30 } // namespace net |
| 31 |
| 32 #endif // NET_BASE_CERT_VERIFY_PROC_OPENSSL_H_ |
OLD | NEW |