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_BASE_X509_CERT_TYPES_H_ | 5 #ifndef NET_CERT_X509_CERT_TYPES_H_ |
6 #define NET_BASE_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/string_piece.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
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_BASE_X509_CERT_TYPES_H_ | 138 #endif // NET_CERT_X509_CERT_TYPES_H_ |
OLD | NEW |