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 CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_ | |
6 #define CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "chromeos/chromeos_export.h" | |
10 | |
11 namespace net { | |
12 class X509Certificate; | |
13 } | |
14 | |
15 namespace chromeos { | |
16 | |
17 class CertificatePattern; | |
18 | |
19 namespace certificate_pattern { | |
20 | |
21 // Fetches the matching certificate that has the latest valid start date. | |
22 // Returns a NULL refptr if there is no such match. | |
23 CHROMEOS_EXPORT scoped_refptr<net::X509Certificate> GetCertificateMatch( | |
24 const CertificatePattern& pattern); | |
25 | |
26 } // namespace certificate_pattern | |
27 | |
28 } // namespace chromeos | |
29 | |
30 #endif // CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_ | |
OLD | NEW |