Index: net/der/parser.cc |
diff --git a/net/der/parser.cc b/net/der/parser.cc |
index 6419549cf044998e362503b0b8b0300afc3343f5..0cb2600f5e6919606df2f422299e49cfd009f6cb 100644 |
--- a/net/der/parser.cc |
+++ b/net/der/parser.cc |
@@ -179,6 +179,13 @@ bool Parser::ReadSequence(Parser* out) { |
return ReadConstructed(kSequence, out); |
} |
+bool Parser::ReadUint8(uint8_t* out) { |
+ Input encoded_int; |
+ if (!ReadTag(kInteger, &encoded_int)) |
+ return false; |
+ return ParseUint8(encoded_int, out); |
+} |
+ |
bool Parser::ReadUint64(uint64_t* out) { |
Input encoded_int; |
if (!ReadTag(kInteger, &encoded_int)) |
@@ -193,6 +200,13 @@ bool Parser::ReadBitString(BitString* bit_string) { |
return ParseBitString(value, bit_string); |
} |
+bool Parser::ReadGeneralizedTime(GeneralizedTime* out) { |
+ Input value; |
+ if (!ReadTag(kGeneralizedTime, &value)) |
+ return false; |
+ return ParseGeneralizedTime(value, out); |
+} |
+ |
} // namespace der |
} // namespace net |