Build fails with >=gcrypt-1.6.0
Build from git fails with newest gcrypt version because of a struct change. Attached you will find a patch that fixes the build. I did a quick test, and so far crypt functions seem to work (password generation?). Obviously one should check for the gcrypt version because with this applied I'm quite sure it breaks build with older versions of gcrypt. Unfortunately, I haven't found a way to check for version ranges.
#1 Updated by Felix Geyer about 3 years ago
Unfortunately, I haven't found a way to check for version ranges.
libgcrypt defines GCRYPT_VERSION_NUMBER
The libgcrypt documentation is not very helpful as it hasn't been updated to reflect the changes in 1.6.
It looks like the gcry_control(GCRYCTL_SET_THREAD_CBS, ...) call isn't necessary anymore but I'm not sure.