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_X509_CERT_TYPES_H_ | 5 #ifndef NET_CERT_X509_CERT_TYPES_H_ |
6 #define NET_CERT_X509_CERT_TYPES_H_ | 6 #define NET_CERT_X509_CERT_TYPES_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/string_piece.h" | 15 #include "base/strings/string_piece.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "net/base/hash_value.h" | 17 #include "net/base/hash_value.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 | 19 |
20 #if defined(OS_MACOSX) && !defined(OS_IOS) | 20 #if defined(OS_MACOSX) && !defined(OS_IOS) |
21 #include <Security/x509defs.h> | 21 #include <Security/x509defs.h> |
22 #endif | 22 #endif |
23 | 23 |
24 namespace base { | 24 namespace base { |
25 class Time; | 25 class Time; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Attempts to parse |raw_date|, an ASN.1 date/time string encoded as | 129 // Attempts to parse |raw_date|, an ASN.1 date/time string encoded as |
130 // |format|, and writes the result into |*time|. If an invalid date is | 130 // |format|, and writes the result into |*time|. If an invalid date is |
131 // specified, or if parsing fails, returns false, and |*time| will not be | 131 // specified, or if parsing fails, returns false, and |*time| will not be |
132 // updated. | 132 // updated. |
133 bool ParseCertificateDate(const base::StringPiece& raw_date, | 133 bool ParseCertificateDate(const base::StringPiece& raw_date, |
134 CertDateFormat format, | 134 CertDateFormat format, |
135 base::Time* time); | 135 base::Time* time); |
136 } // namespace net | 136 } // namespace net |
137 | 137 |
138 #endif // NET_CERT_X509_CERT_TYPES_H_ | 138 #endif // NET_CERT_X509_CERT_TYPES_H_ |
OLD | NEW |