Chromium Code Reviews| Index: net/cert/internal/parse_certificate.h |
| diff --git a/net/cert/internal/parse_certificate.h b/net/cert/internal/parse_certificate.h |
| index a164682eb49e8e673c33c27c2b24f41383acafd9..72fa22038efec3061a6a0e692bdac87ce525ee4a 100644 |
| --- a/net/cert/internal/parse_certificate.h |
| +++ b/net/cert/internal/parse_certificate.h |
| @@ -457,6 +457,20 @@ NET_EXPORT bool ParseAuthorityInfoAccess( |
| std::vector<base::StringPiece>* out_ca_issuers_uris, |
| std::vector<base::StringPiece>* out_ocsp_uris) WARN_UNUSED_RESULT; |
| +struct ParsedPolicyConstraints { |
|
mattm
2017/05/10 20:01:23
we don't really have a well-defined organization c
eroman
2017/05/13 01:10:55
Done.
|
| + bool has_require_explicit_policy = false; |
| + uint8_t require_explicit_policy = 0; |
| + |
| + bool has_inhibit_policy_mapping = false; |
| + uint8_t inhibit_policy_mapping = 0; |
| +}; |
| + |
| +// Parses a PolicyConstraints SEQUENCE as defined by RFC 5280. Returns true on |
| +// success, and sets |out|. |
| +NET_EXPORT bool ParsePolicyConstraints(const der::Input& policy_constraints_tlv, |
| + ParsedPolicyConstraints* out) |
| + WARN_UNUSED_RESULT; |
| + |
| } // namespace net |
| #endif // NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ |