libotutil: Add helper for GPG WKD update URLs
authorDan Nicholson <nicholson@endlessm.com>
Tue, 27 Aug 2019 16:28:10 +0000 (10:28 -0600)
committerDan Nicholson <dbn@endlessos.org>
Thu, 15 Jul 2021 21:50:04 +0000 (15:50 -0600)
commit4fa403aee500df058a7d3ee2b6b1db4300ad7a92
tree671d694e8c868b84b5d5e9b71f429b56009e0ad5
parentfbff05e28d0e0d3c8424a7d4a5652a253a553b04
libotutil: Add helper for GPG WKD update URLs

Calculate the advanced and direct update URLs for the key discovery
portion[1] of the OpenPGP Web Key Directory specification, and include
the URLs in the key listing in ostree_repo_remote_get_gpg_keys(). These
URLs can be used to locate updated GPG keys for the remote.

1. https://datatracker.ietf.org/doc/html/draft-koch-openpgp-webkey-service#section-3.1
src/libotutil/ot-gpg-utils.c
src/libotutil/ot-gpg-utils.h