A C library that implements a minimalist EAR (EAT Attestation Result) decoder and verifier.
brew install cmake
brew install libjwt
brew install jansson
brew install openssl
sudo apt-get -y install cmake
- clone libjwt repo locally:
git clone --depth 1 --branch v1.15.2 https://github.com/benmcollins/libjwt.git
cd libjwt
- configure (jansson dependency is handled recursively):
cmake -Bbuild \
-DUSE_INSTALLED_JANSSON=OFF \
-DJANSSON_BUILD_DOCS=OFF
- build and install
cmake --build build --target all install
On MacOSX only:
export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
The following does an out-of-source build in the _build
folder, runs the unit tests and installs in the usual platform default location.
cmake -B_build
cmake --build _build/ --target all test install