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 <stddef.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
10 #include <map> | 11 #include <map> |
11 #include <set> | 12 #include <set> |
12 #include <string> | 13 #include <string> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Attempts to parse |raw_date|, an ASN.1 date/time string encoded as | 90 // Attempts to parse |raw_date|, an ASN.1 date/time string encoded as |
90 // |format|, and writes the result into |*time|. If an invalid date is | 91 // |format|, and writes the result into |*time|. If an invalid date is |
91 // specified, or if parsing fails, returns false, and |*time| will not be | 92 // specified, or if parsing fails, returns false, and |*time| will not be |
92 // updated. | 93 // updated. |
93 NET_EXPORT_PRIVATE bool ParseCertificateDate(const base::StringPiece& raw_date, | 94 NET_EXPORT_PRIVATE bool ParseCertificateDate(const base::StringPiece& raw_date, |
94 CertDateFormat format, | 95 CertDateFormat format, |
95 base::Time* time); | 96 base::Time* time); |
96 } // namespace net | 97 } // namespace net |
97 | 98 |
98 #endif // NET_CERT_X509_CERT_TYPES_H_ | 99 #endif // NET_CERT_X509_CERT_TYPES_H_ |
OLD | NEW |