Implementation of JOSE for C/C++
MAC OS X All of the prerequisites can be installed via brew.
- pkg-config (>= 0.20)
- GNU Make >= 3.81
- LLVM >= 5.1 or GCC >= 4.5
- Autoconf (>= 2.69)
- Automake (>= 1.14)
- libtool (>= 2.4)
- Check (>= 0.9.4) - unit testing (e.g. check-devel)
- Doxygen (>= 1.8) - documentation
- clang-format (= 3.9.0)
- OpenSSL >= 1.0.1h (or its API equivalent)
- Jansson >= 2.3
As with most autoconf/automake projects:
git clone https://github.com/cisco/cjose.git cd cjose ./configure && make
--with-openssl: Specify the location where OpenSSL/CiscoSSL is installed --with-jansson: Specify the location where Jansson is installed --disable-shared: Only build static library
To compile in debug mode (minimal optimization, active asserts, etc), specify the appropriate CFLAGS as a command-line argument when executing configure:
./configure CFLAGS="-g -O0 -DDEBUG"
To execute the unit tests:
If successful, the list of checks will be displayed on the console. Otherwise, the file "test/test-suite.log" will list the specific test(s) that failed.
To generate Doxygen API documentation:
Which will place the generated documentation in "doc/html".
To rebuild all of the project -- including those files generated by autoconf and automake:
autoreconf --force --install
Configure can't find check.h header file.
This has been seen on Mac OSX 10.8 and 10.9 when check has been installed via brew. A solution is to explicitly include the /usr/local/include directory in the cflags:
Make fails due to many OpenSSL functions being "deprecated" or missing.
This has been seen on Mac OSX 10.9 when openssl 1.0.1h or newer has been installed via brew. A solution is to explicitly include the openssl directory in the configure command:
Make fails due to json_* functions missing.
This has been seen on Mac OSX 10.9 when Jansson has been installed via brew. A solution is to explicitly include the jansson directory in the configure command:
Before Submitting PR