OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ASN1_UTIL_H_ | 5 #ifndef NET_CERT_ASN1_UTIL_H_ |
6 #define NET_CERT_ASN1_UTIL_H_ | 6 #define NET_CERT_ASN1_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string_piece.h" | 10 #include "base/strings/string_piece.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 namespace asn1 { | 15 namespace asn1 { |
16 | 16 |
17 // These are the DER encodings of the tag byte for ASN.1 objects. | 17 // These are the DER encodings of the tag byte for ASN.1 objects. |
18 static const unsigned kBOOLEAN = 0x01; | 18 static const unsigned kBOOLEAN = 0x01; |
19 static const unsigned kINTEGER = 0x02; | 19 static const unsigned kINTEGER = 0x02; |
20 static const unsigned kBITSTRING = 0x03; | 20 static const unsigned kBITSTRING = 0x03; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // several locations as far as a CRL filter is concerned. | 84 // several locations as far as a CRL filter is concerned. |
85 NET_EXPORT_PRIVATE bool ExtractCRLURLsFromDERCert( | 85 NET_EXPORT_PRIVATE bool ExtractCRLURLsFromDERCert( |
86 base::StringPiece cert, | 86 base::StringPiece cert, |
87 std::vector<base::StringPiece>* urls_out); | 87 std::vector<base::StringPiece>* urls_out); |
88 | 88 |
89 } // namespace asn1 | 89 } // namespace asn1 |
90 | 90 |
91 } // namespace net | 91 } // namespace net |
92 | 92 |
93 #endif // NET_CERT_ASN1_UTIL_H_ | 93 #endif // NET_CERT_ASN1_UTIL_H_ |
OLD | NEW |