Created https://github.com/mofosyne/iana-headers/blob/main/cbor/c/cbor-constants.h#L22-L31 but noticed that
|
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; |
has a different naming approach so it's not directly adaptable to use my existing codegenerator (written in python).
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.
Created https://github.com/mofosyne/iana-headers/blob/main/cbor/c/cbor-constants.h#L22-L31 but noticed that
tinycbor/src/cbor.h
Lines 105 to 128 in 04b306c
Also it doesn't seem like the enum is directly referenced in the code so am proposing to add a
iana-cbor-constant.hso you can still keep the existing CborKnownTags for backwards compatibility. Other option is to manually adapt the python code to match tinycbor naming convention.