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_WIN_H_ | |
6 #define NET_BASE_CERT_VERIFY_PROC_WIN_H_ | |
7 #pragma once | |
8 | |
9 #include "net/base/multi_threaded_cert_verifier.h" | |
10 | |
11 namespace net { | |
12 | |
13 // CertVerifyProcWin is a VerifyProc implementation that verifies certificates | |
14 // using Windows' CryptoAPI for path building and verification. | |
15 class CertVerifyProcWin : public MultiThreadedCertVerifier::VerifyProc { | |
16 public: | |
17 CertVerifyProcWin(); | |
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 ~CertVerifyProcWin(); | |
wtc
2012/03/06 23:10:14
Why do we need to make the destructor protected?
| |
28 }; | |
29 | |
30 } // namespace net | |
31 | |
32 #endif // NET_BASE_CERT_VERIFY_PROC_WIN_H_ | |
OLD | NEW |