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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/numerics/safe_math.h" | 6 #include "base/numerics/safe_math.h" |
7 #include "net/der/parse_values.h" | 7 #include "net/der/parse_values.h" |
8 #include "net/der/parser.h" | 8 #include "net/der/parser.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 return ParseUint64(encoded_int, out); | 186 return ParseUint64(encoded_int, out); |
187 } | 187 } |
188 | 188 |
189 bool Parser::ReadBitString(BitString* bit_string) { | 189 bool Parser::ReadBitString(BitString* bit_string) { |
190 Input value; | 190 Input value; |
191 if (!ReadTag(kBitString, &value)) | 191 if (!ReadTag(kBitString, &value)) |
192 return false; | 192 return false; |
193 return ParseBitString(value, bit_string); | 193 return ParseBitString(value, bit_string); |
194 } | 194 } |
195 | 195 |
| 196 bool Parser::ReadGeneralizedTime(GeneralizedTime* out) { |
| 197 Input value; |
| 198 if (!ReadTag(kGeneralizedTime, &value)) |
| 199 return false; |
| 200 return ParseGeneralizedTime(value, out); |
| 201 } |
| 202 |
196 } // namespace der | 203 } // namespace der |
197 | 204 |
198 } // namespace net | 205 } // namespace net |
OLD | NEW |