]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libsecureboot: allow OpenPGP support to be dormant
authorsjg <sjg@FreeBSD.org>
Wed, 26 Jun 2019 23:33:32 +0000 (23:33 +0000)
committersjg <sjg@FreeBSD.org>
Wed, 26 Jun 2019 23:33:32 +0000 (23:33 +0000)
commit10c90a3b2aa1da44569acd69cd0d239635b278e4
treeb718b14ac9447df1e131cb6e7ab9030ca1d04fbc
parentf18057177b20b404b392e839aaff14c466c90099
libsecureboot: allow OpenPGP support to be dormant

Since we can now add OpenPGP trust anchors at runtime,
ensure the latent support is available.

Ensure we do not add duplicate keys to trust store.

Also allow reporting names of trust anchors added/revoked

We only do this for loader and only after initializing trust store.
Thus only changes to initial trust store will be logged.

Reviewed by: stevek
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D20700
lib/libsecureboot/h/libsecureboot.h
lib/libsecureboot/libsecureboot-priv.h
lib/libsecureboot/local.trust.mk
lib/libsecureboot/openpgp/opgp_key.c
lib/libsecureboot/readfile.c
lib/libsecureboot/verify_file.c
lib/libsecureboot/vets.c