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

Side by Side Diff: net/der/tag.h

Issue 1214933009: Class for parsing and evaluating RFC 5280 NameConstraints. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compare_DN2
Patch Set: changes for comment #16 Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/data/verify_name_match_unittest/scripts/generate_names.py ('k') | net/der/tag.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DER_TAG_H_ 5 #ifndef NET_DER_TAG_H_
6 #define NET_DER_TAG_H_ 6 #define NET_DER_TAG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Creates the value for the outter tag of an explicitly tagged type. 58 // Creates the value for the outter tag of an explicitly tagged type.
59 // 59 //
60 // The ASN.1 keyword for this is: 60 // The ASN.1 keyword for this is:
61 // [class_number] EXPLICIT 61 // [class_number] EXPLICIT
62 // 62 //
63 // (Note, the EXPLICIT may be omitted if the entire schema is in 63 // (Note, the EXPLICIT may be omitted if the entire schema is in
64 // EXPLICIT mode, the default) 64 // EXPLICIT mode, the default)
65 NET_EXPORT Tag ContextSpecificConstructed(uint8_t class_number); 65 NET_EXPORT Tag ContextSpecificConstructed(uint8_t class_number);
66 66
67 NET_EXPORT Tag ContextSpecificPrimitive(uint8_t base); 67 NET_EXPORT Tag ContextSpecificPrimitive(uint8_t base);
68
69 NET_EXPORT bool IsContextSpecific(Tag tag);
70
68 NET_EXPORT bool IsConstructed(Tag tag); 71 NET_EXPORT bool IsConstructed(Tag tag);
69 72
73 NET_EXPORT uint8_t GetTagNumber(Tag tag);
74
70 } // namespace der 75 } // namespace der
71 76
72 } // namespace net 77 } // namespace net
73 78
74 #endif // NET_DER_TAG_H_ 79 #endif // NET_DER_TAG_H_
OLDNEW
« no previous file with comments | « net/data/verify_name_match_unittest/scripts/generate_names.py ('k') | net/der/tag.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698