diff options
author | Colin Walters <walters@verbum.org> | 2016-11-16 09:13:54 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-11-17 09:44:07 +0000 |
commit | f244c702772c69378099685316033d4a6f7b862c (patch) | |
tree | 8dfb779a89ac016df89bde1848287cd635ee5a5e /src/libostree/ostree-gpg-verifier.h | |
parent | 3cd5e6b41a6730ff2624ab125b51e12601913712 (diff) | |
download | ostree-f244c702772c69378099685316033d4a6f7b862c.tar.gz |
Add "gpgkeypath" option to remotes
For Project Atomic, we already have RPM signatures which use files in
`/etc/pki/rpm-gpg`. It's convenient to simply bind the OSTree remote
configuration to those file paths, rather than having duplicate key
data.
This does mean that we need to parse the files for verification, so we
end up importing them into the verifier's temporary keyring, which is
a bit ugly, but it's what other projects do.
Closes: https://github.com/ostreedev/ostree/issues/573
Closes: #575
Approved by: giuseppe
Diffstat (limited to 'src/libostree/ostree-gpg-verifier.h')
-rw-r--r-- | src/libostree/ostree-gpg-verifier.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-gpg-verifier.h b/src/libostree/ostree-gpg-verifier.h index 2db39f3b..4156d1bd 100644 --- a/src/libostree/ostree-gpg-verifier.h +++ b/src/libostree/ostree-gpg-verifier.h @@ -62,4 +62,7 @@ gboolean _ostree_gpg_verifier_add_global_keyring_dir (OstreeGpgVerifier *s void _ostree_gpg_verifier_add_keyring (OstreeGpgVerifier *self, GFile *path); +void _ostree_gpg_verifier_add_key_ascii_file (OstreeGpgVerifier *self, + const char *path); + G_END_DECLS |