| Index: net/cert/internal/parse_certificate.h
|
| diff --git a/net/cert/internal/parse_certificate.h b/net/cert/internal/parse_certificate.h
|
| index d3c4d975b260f1ae71140f4b2ef560371055f678..1414d2e059d2435889b9891461399051412d655e 100644
|
| --- a/net/cert/internal/parse_certificate.h
|
| +++ b/net/cert/internal/parse_certificate.h
|
| @@ -324,6 +324,14 @@ NET_EXPORT bool ParseExtensions(
|
| const der::Input& extensions_tlv,
|
| std::map<der::Input, ParsedExtension>* extensions) WARN_UNUSED_RESULT;
|
|
|
| +// Removes the extension with OID |oid| from |unconsumed_extensions| and fills
|
| +// |extension| with the matching extension value. If there was no extension
|
| +// matching |oid| then returns |false|.
|
| +NET_EXPORT bool ConsumeExtension(
|
| + const der::Input& oid,
|
| + std::map<der::Input, ParsedExtension>* unconsumed_extensions,
|
| + ParsedExtension* extension) WARN_UNUSED_RESULT;
|
| +
|
| struct ParsedBasicConstraints {
|
| bool is_ca = false;
|
| bool has_path_len = false;
|
|
|