Tests fail if gnutls built without p11-kit, _or_ glib-networking should mandate p11-kit
If I've built gnutls without p11-kit then glib-networking's tests fail to link as gnutls_pkcs11_init
and gnutls_pkcs11_add_provider
are not part of gnutls. Deleting those lines from the test suite predictable makes the tests fail.
So, should:
a) glib-networking detect if gnutls_pkcs11_add_provider
exists (or another way of determining this), and skip the tests which fail if PKCS#11 isn't enable in gnutls, or
b) Check that PKCS#11 is enabled in gnutls and refuse to build if it isn't
Edited by Ross Burton