| Index: net/der/parse_values.h
|
| diff --git a/net/der/parse_values.h b/net/der/parse_values.h
|
| index fbe1d88b80b694e384f63379812c9bc536fc02e6..b525a64662e23fc9b9b362b3aa920f6c3f414032 100644
|
| --- a/net/der/parse_values.h
|
| +++ b/net/der/parse_values.h
|
| @@ -30,6 +30,23 @@ NET_EXPORT bool ParseBoolRelaxed(const Input& in, bool* out) WARN_UNUSED_RESULT;
|
| // uint64_t, is negative, or if there is an error reading the integer.
|
| NET_EXPORT bool ParseUint64(const Input& in, uint64_t* out) WARN_UNUSED_RESULT;
|
|
|
| +// Reads a DER-encoded ASN.1 BIT STRING value from |in| and puts the resulting
|
| +// octet string into |bytes|, and the number of unused bits into |unused_bits|.
|
| +//
|
| +// The bits are ordered within each octet of |bytes| from most to
|
| +// least significant, as in the DER encoding.
|
| +//
|
| +// Returns true on success, otherwise returns false and does not modify the
|
| +// out-parameters.
|
| +//
|
| +// On success it can be assumed that:
|
| +// * |*unused_bits| < 8
|
| +// * The final byte of |bytes| has its |*unused_bits| least significant bits
|
| +// set to 0.
|
| +NET_EXPORT bool ParseBitString(const Input& in,
|
| + Input* bytes,
|
| + uint8_t* unused_bits) WARN_UNUSED_RESULT;
|
| +
|
| struct GeneralizedTime {
|
| uint16_t year;
|
| uint8_t month;
|
|
|