package/gnutls: give library a default trust location
authorTrent Piepho <tpiepho@impinj.com>
Fri, 16 Nov 2018 20:17:32 +0000 (20:17 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 3 Dec 2018 20:25:58 +0000 (21:25 +0100)
commit379306e8f2394d6f75ac138673dbf6be9ae9155a
treeaba754339535891f03f598281ce3c29f23614d93
parentb8941627371983ba7b74de9c540099ae9027ae18
package/gnutls: give library a default trust location

Gnutls is building with no default location to look for CA certs.  Since
there are buildroot packages to provide these, configure it to use them
by default.

Configure gnutls to find them using the bundle file which contains all
certs, rather than looking in the cert directory.  When gnutls is told
to use the directory, it loads *every* file in it.  This means it loads
the bundle with all certs, then loads each cert a second time using the
individual pem files, and then loads them all the third time via the
hash symlinks to the pem files.

When p11-kit is enabled, use its trust module instead of the bundle
file.  p11-kit can be configured to use the bundle (the default), but it
can do other things too, such as integrate with the "trust" command for
adding and removing trust anchors.

Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gnutls/gnutls.mk