| 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_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 Loading... |
| 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_ |
| OLD | NEW |