babelouest / rhonabwy

Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT
https://babelouest.github.io/rhonabwy/
GNU Lesser General Public License v2.1
45 stars 21 forks source link

Add Nettle as direct dependency and fix include directories #13

Closed wbangna closed 3 years ago

wbangna commented 3 years ago

Nettle is a direct dependency of rhonabwy since it is directly used in jwe.c. Therefore I added the find_package code for nettle.

I copied FindNettle.cmake from your other project iddawc.

The include directories of orcania and yder were not added to the include list when the libraries were found.

This commit fixes my issues described in https://github.com/babelouest/rhonabwy/issues/12 almost completely. I still have to add the include directory of the gmp library to the resulting makefiles. This because nettle includes gmp.h in a public header file (nettle/bignum.h).

babelouest commented 3 years ago

Good call, thanks @wbangna !