Skip to content

veraison/c-ear

Repository files navigation

C-EAR (see, ear)

A C library that implements a minimalist EAR (EAT Attestation Result) decoder and verifier.

Build Instructions

Prerequisites

  • CMake (>= 2.8)
  • libjwt 1.15.2 (which in turn depends on jansson):
  • OpenSSL

MacOSX

brew install cmake
brew install libjwt
brew install jansson
brew install openssl

Ubuntu

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

Build, Test and 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

Releases

No releases published

Packages

No packages published