Adding Credential management.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-20 17:31:09 +02:00
parent 3dc7af05c1
commit 72ebb2b596
8 changed files with 210 additions and 71 deletions

View File

@@ -104,7 +104,8 @@ typedef struct CborCharString {
CBOR_FREE((v).data); \
else \
(v).data = NULL; \
(v).len = 0; \
(v).len = 0; \
(v).present = false; \
} while(0)
#define CBOR_PARSE_MAP_START(_p,_n) \
@@ -224,6 +225,12 @@ typedef struct CborCharString {
CBOR_CHECK(cbor_encode_uint(&(p), (v))); \
} while(0)
#define CBOR_APPEND_KEY_UINT_VAL_INT(p, k, v) \
do { \
CBOR_CHECK(cbor_encode_int(&(p), (k))); \
CBOR_CHECK(cbor_encode_int(&(p), (v))); \
} while(0)
#define CBOR_APPEND_KEY_UINT_VAL_BOOL(p, k, v) \
do { \
CBOR_CHECK(cbor_encode_uint(&(p), (k))); \