- JANSSON (>= 2.0)
- OpenSSL (>= 1.1.0)
- GnuTLS (>= 3.6.0)
NOTE: OpenSSL >= 3.0 is required for JWK and JWKS support
- Check Library for unit testing
- Doxygen
LibJWT is available in most Linux distributions as well as through Homebrew for Linux, macOS, and Windows.
With GNU AutoTools:
$ autoreconf -if
...
$ mkdir build
$ cd build
$ ../configure
...
$ make
...
With CMake:
$ mkdir build
$ cd build
$ cmake ..
...
$ make
...
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.