Awesome
Build Prerequisites
Required
- JANSSON (>= 2.0)
Atleast one of these, you can use both
- OpenSSL (>= 1.1.0)
- GnuTLS (>= 3.6.0)
NOTE: OpenSSL >= 3.0 is required for JWK and JWKS support
Optional
- Check Library for unit testing
- Doxygen
Documentation
Pre-built Packages
LibJWT is available in most Linux distributions as well as through Homebrew for Linux, macOS, and Windows.
Build Instructions
With GNU AutoTools:
$ autoreconf -if
...
$ mkdir build
$ cd build
$ ../configure
...
$ make
...
With CMake:
$ mkdir build
$ cd build
$ cmake ..
...
$ make
...
Common
If you have libcheck installed, both targets will compile the test suite
which you can run using the check
target.
Both build systems will auto detect OpenSSL and GnuTLS and use one or both. Each build system has a way to force-enable (error if not found) or force-disable either library.