Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ | 5 #ifndef NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ |
| 6 #define NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ | 6 #define NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 // IA5String (ASCII strings), but no other validation is performed on them. | 450 // IA5String (ASCII strings), but no other validation is performed on them. |
| 451 // | 451 // |
| 452 // accessMethods other than id-ad-caIssuers and id-ad-ocsp are silently ignored. | 452 // accessMethods other than id-ad-caIssuers and id-ad-ocsp are silently ignored. |
| 453 // accessLocation types other than uniformResourceIdentifier are silently | 453 // accessLocation types other than uniformResourceIdentifier are silently |
| 454 // ignored. | 454 // ignored. |
| 455 NET_EXPORT bool ParseAuthorityInfoAccess( | 455 NET_EXPORT bool ParseAuthorityInfoAccess( |
| 456 const der::Input& authority_info_access_tlv, | 456 const der::Input& authority_info_access_tlv, |
| 457 std::vector<base::StringPiece>* out_ca_issuers_uris, | 457 std::vector<base::StringPiece>* out_ca_issuers_uris, |
| 458 std::vector<base::StringPiece>* out_ocsp_uris) WARN_UNUSED_RESULT; | 458 std::vector<base::StringPiece>* out_ocsp_uris) WARN_UNUSED_RESULT; |
| 459 | 459 |
| 460 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.
| |
| 461 bool has_require_explicit_policy = false; | |
| 462 uint8_t require_explicit_policy = 0; | |
| 463 | |
| 464 bool has_inhibit_policy_mapping = false; | |
| 465 uint8_t inhibit_policy_mapping = 0; | |
| 466 }; | |
| 467 | |
| 468 // Parses a PolicyConstraints SEQUENCE as defined by RFC 5280. Returns true on | |
| 469 // success, and sets |out|. | |
| 470 NET_EXPORT bool ParsePolicyConstraints(const der::Input& policy_constraints_tlv, | |
| 471 ParsedPolicyConstraints* out) | |
| 472 WARN_UNUSED_RESULT; | |
| 473 | |
| 460 } // namespace net | 474 } // namespace net |
| 461 | 475 |
| 462 #endif // NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ | 476 #endif // NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ |
| OLD | NEW |