-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Description
Created https://github.com/mofosyne/iana-headers/blob/main/cbor/c/cbor-constants.h#L22-L31 but noticed that
Lines 105 to 128 in 04b306c
| typedef enum CborKnownTags { | |
| CborDateTimeStringTag = 0, | |
| CborUnixTime_tTag = 1, | |
| CborPositiveBignumTag = 2, | |
| CborNegativeBignumTag = 3, | |
| CborDecimalTag = 4, | |
| CborBigfloatTag = 5, | |
| CborCOSE_Encrypt0Tag = 16, | |
| CborCOSE_Mac0Tag = 17, | |
| CborCOSE_Sign1Tag = 18, | |
| CborExpectedBase64urlTag = 21, | |
| CborExpectedBase64Tag = 22, | |
| CborExpectedBase16Tag = 23, | |
| CborEncodedCborTag = 24, | |
| CborUrlTag = 32, | |
| CborBase64urlTag = 33, | |
| CborBase64Tag = 34, | |
| CborRegularExpressionTag = 35, | |
| CborMimeMessageTag = 36, | |
| CborCOSE_EncryptTag = 96, | |
| CborCOSE_MacTag = 97, | |
| CborCOSE_SignTag = 98, | |
| CborSignatureTag = 55799 | |
| } CborKnownTags; |
Also it doesn't seem like the enum is directly referenced in the code so am proposing to add a iana-cbor-constant.h so you can still keep the existing CborKnownTags for backwards compatibility. Other option is to manually adapt the python code to match tinycbor naming convention.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels