Index: net/der/parser.h |
diff --git a/net/der/parser.h b/net/der/parser.h |
index 2192371d6c62890aea9426acb052d61071100033..6274ebe8818fb74c03ca06470cb61afda0203c15 100644 |
--- a/net/der/parser.h |
+++ b/net/der/parser.h |
@@ -19,6 +19,7 @@ namespace net { |
namespace der { |
class BitString; |
+struct GeneralizedTime; |
// Parses a DER-encoded ASN.1 structure. DER (distinguished encoding rules) |
// encodes each data value with a tag, length, and value (TLV). The tag |
@@ -161,6 +162,12 @@ class NET_EXPORT Parser { |
// input may or may not have been advanced). |
bool ReadBitString(BitString* out) WARN_UNUSED_RESULT; |
+ // Reads a GeneralizeTime. On success fills |out| and returns true. |
+ // |
+ // Note that on failure the Parser is left in an undefined state (the |
+ // input may or may not have been advanced). |
+ bool ReadGeneralizedTime(GeneralizedTime* out) WARN_UNUSED_RESULT; |
+ |
// Lower level methods. The previous methods couple reading data from the |
// input with advancing the Parser's internal pointer to the next TLV; these |
// lower level methods decouple those two steps into methods that read from |