Skip to content

glvi/cbor_cpp

Repository files navigation

C++ build

cbor_cpp

C++ library for decoding Concise Binary Object Representation (CBOR).

Concise Binary Object Representation is an Internet Standard, see [STD94] below.

[STD94]

Internet Standard 94, <https://www.rfc-editor.org/info/std94>. At the time of writing, this STD comprises the following:

Bormann, C. and P. Hoffman, "Concise Binary Object Representation (CBOR)", STD 94, RFC 8949, DOI 10.17487/RFC8949, December 2020, <https://www.rfc-editor.org/info/rfc8949>.

Tested on

  • macOS 26
  • macOS 15.5
  • ubuntu 24.04

Dependencies

Requires

Check out

git clone https://github.com/glvi/cbor_cpp

Build from source

autoreconf -fis
mkdir -p build
(cd build && ../configure CXXFLAGS=-std=c++23 CPPFLAGS=-I/usr/local/include)
gmake -j -C build check

You can choose any other name for the build directory.

Modify CXXFLAGS accordingly, if your compiler uses a different directive to support C++23, or if you want to specify additional compiler flags.

Modify CPPFLAGS accordingly, if your installation of DejaGnu resides in a different location, or if you want to specify additional preprocessor flags.

Information security

The scanner has protection against excessive counts of bytes in byte strings or text strings, or excessive counts of elements in arrays or maps. These counts can be changed at the level of the configure script. See configure --help for options --enable-cbor-bstr/tstr/array/map-count-max. Default values are as follows.

Type Max Unit
bstr 32768 bytes
tstr 32768 bytes
array 1024 elements
map 512 pairs of elements

About

C++ library for decoding Concise Binary Object Representation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published