| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DER_PARSE_VALUES_H_ | 5 #ifndef NET_DER_PARSE_VALUES_H_ |
| 6 #define NET_DER_PARSE_VALUES_H_ | 6 #define NET_DER_PARSE_VALUES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 9 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 10 #include "net/der/input.h" | 12 #include "net/der/input.h" |
| 11 | 13 |
| 12 namespace net { | 14 namespace net { |
| 13 | 15 |
| 14 namespace der { | 16 namespace der { |
| 15 | 17 |
| 16 // Reads a DER-encoded ASN.1 BOOLEAN value from |in| and puts the resulting | 18 // Reads a DER-encoded ASN.1 BOOLEAN value from |in| and puts the resulting |
| 17 // value in |out|. Returns whether the encoded value could successfully be | 19 // value in |out|. Returns whether the encoded value could successfully be |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // DER rules - it follows the rules from RFC5280, which does not allow for | 117 // DER rules - it follows the rules from RFC5280, which does not allow for |
| 116 // fractional seconds. | 118 // fractional seconds. |
| 117 NET_EXPORT bool ParseGeneralizedTime(const Input& in, | 119 NET_EXPORT bool ParseGeneralizedTime(const Input& in, |
| 118 GeneralizedTime* out) WARN_UNUSED_RESULT; | 120 GeneralizedTime* out) WARN_UNUSED_RESULT; |
| 119 | 121 |
| 120 } // namespace der | 122 } // namespace der |
| 121 | 123 |
| 122 } // namespace net | 124 } // namespace net |
| 123 | 125 |
| 124 #endif // NET_DER_PARSE_VALUES_H_ | 126 #endif // NET_DER_PARSE_VALUES_H_ |
| OLD | NEW |