MINOR: tools: add cbor encode helpers
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 22 Apr 2024 15:38:44 +0000 (17:38 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 16:39:32 +0000 (18:39 +0200)
commit810303e3e64b3ff9af1de8b8876f0f3cded88837
tree0639514a544fe5cead3f8204cd97eed2a388663c
parent3f7c8387c02ee4bca75197ef4e30fc38fdfbb858
MINOR: tools: add cbor encode helpers

Add cbor helpers to encode strings (bytes/text) and integers according to
RFC8949, also add cbor_encode_ctx struct to pass encoding options such as
how to encode a single byte.
include/haproxy/tools-t.h
include/haproxy/tools.h
src/tools.c