Chromium Code Reviews| Index: net/cert/internal/parsed_certificate.h |
| diff --git a/net/cert/internal/parsed_certificate.h b/net/cert/internal/parsed_certificate.h |
| index 7c9ae3cba75508c4957b7dbb7128bb0514a0059f..5330928534d0768eb898f0df0e26d2b19ce83d25 100644 |
| --- a/net/cert/internal/parsed_certificate.h |
| +++ b/net/cert/internal/parsed_certificate.h |
| @@ -152,6 +152,19 @@ class NET_EXPORT ParsedCertificate |
| return *name_constraints_; |
| } |
| + // Returns true if the certificate has an AuthorityInfoAccess extension. |
| + bool has_authority_info_access() const { return has_authority_info_access_; } |
| + // Returns the ParsedExtension struct for the AuthorityInfoAccess extension. |
| + const ParsedExtension& authority_info_access_extension() const { |
| + return authority_info_access_extension_; |
| + } |
| + // Returns any caIssuers URIs from the AuthorityInfoAccess extension. |
|
eroman
2016/06/04 01:08:48
nit: space after closing bracket (and elsewhere).
mattm
2016/06/04 03:24:09
Done.
|
| + const std::vector<base::StringPiece>& ca_issuers_uris() const { |
| + return ca_issuers_uris_; |
| + } |
| + // Returns any ocsp URIs from the AuthorityInfoAccess extension. |
|
eroman
2016/06/04 01:08:48
nit: ocsp --> OCSP
mattm
2016/06/04 03:24:09
Done.
|
| + const std::vector<base::StringPiece>& ocsp_uris() const { return ocsp_uris_; } |
| + |
| // Returns a map of unhandled extensions (excludes the ones above). |
| const ExtensionsMap& unparsed_extensions() const { |
| return unparsed_extensions_; |
| @@ -202,6 +215,15 @@ class NET_EXPORT ParsedCertificate |
| // NameConstraints extension. |
| std::unique_ptr<NameConstraints> name_constraints_; |
| + // AuthorityInfoAccess extension. |
| + bool has_authority_info_access_; |
| + ParsedExtension authority_info_access_extension_; |
| + // CaIssuers and Ocsp URIs parsed from the AuthorityInfoAccess extension. Note |
| + // that the AuthorityInfoAccess may have contained other AccessDescriptions |
| + // which are not represented here. |
| + std::vector<base::StringPiece> ca_issuers_uris_; |
| + std::vector<base::StringPiece> ocsp_uris_; |
| + |
| // The remaining extensions (excludes the standard ones above). |
| ExtensionsMap unparsed_extensions_; |