Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: net/cert/internal/parse_certificate.h

Issue 2872113002: Add parsing code for RFC 5280 PolicyConstraints. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/cert/internal/parse_certificate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | net/cert/internal/parse_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698