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> |
| 9 |
8 #include <map> | 10 #include <map> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
13 #include "net/der/input.h" | 14 #include "net/der/input.h" |
14 #include "net/der/parse_values.h" | 15 #include "net/der/parse_values.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 struct ParsedCertificate; | 19 struct ParsedCertificate; |
19 struct ParsedTbsCertificate; | 20 struct ParsedTbsCertificate; |
20 | 21 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // be set. | 364 // be set. |
364 // | 365 // |
365 // To test if a particular key usage is set, call, e.g.: | 366 // To test if a particular key usage is set, call, e.g.: |
366 // key_usage->AssertsBit(KEY_USAGE_BIT_DIGITAL_SIGNATURE); | 367 // key_usage->AssertsBit(KEY_USAGE_BIT_DIGITAL_SIGNATURE); |
367 NET_EXPORT bool ParseKeyUsage(const der::Input& key_usage_tlv, | 368 NET_EXPORT bool ParseKeyUsage(const der::Input& key_usage_tlv, |
368 der::BitString* key_usage) WARN_UNUSED_RESULT; | 369 der::BitString* key_usage) WARN_UNUSED_RESULT; |
369 | 370 |
370 } // namespace net | 371 } // namespace net |
371 | 372 |
372 #endif // NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ | 373 #endif // NET_CERT_INTERNAL_PARSE_CERTIFICATE_H_ |
OLD | NEW |