[ostree] libostree: Actually trusted.gpg.d/*.gpg for GPG verification



commit ffb19aef9afe7ad496ce947ca6787b0d92a8f422
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 30 15:40:46 2014 -0500

    libostree: Actually trusted.gpg.d/*.gpg for GPG verification
    
    The intent of this code I'm fairly certain was to use *.gpg from the
    trusted.gpg.d, directory.  But right now, we're only using
    "pubring.gpg" from that directory, which is odd.
    
    Let's fix this to use all keys ending in .gpg, which will also
    include pubring.gpg.

 src/libostree/ostree-gpg-verifier.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/libostree/ostree-gpg-verifier.c b/src/libostree/ostree-gpg-verifier.c
index 7acd54a..8d363eb 100644
--- a/src/libostree/ostree-gpg-verifier.c
+++ b/src/libostree/ostree-gpg-verifier.c
@@ -77,17 +77,14 @@ ostree_gpg_verifier_initable_init (GInitable        *initable,
   OstreeGpgVerifier *self = (OstreeGpgVerifier*)initable;
   const char *default_keyring_path = g_getenv ("OSTREE_GPG_HOME");
   gs_unref_object GFile *default_keyring_dir = NULL;
-  gs_unref_object GFile *default_pubring_file = NULL;
   gs_unref_object GFile *default_pubring = NULL;
 
   if (!default_keyring_path)
     default_keyring_path = DATADIR "/ostree/trusted.gpg.d/";
 
   default_keyring_dir = g_file_new_for_path (default_keyring_path);
-  default_pubring_file = g_file_get_child (default_keyring_dir, "pubring.gpg");
-
-  if (!_ostree_gpg_verifier_add_keyring (self, default_pubring_file,
-                                         cancellable, error))
+  if (!_ostree_gpg_verifier_add_keyring_dir (self, default_keyring_dir,
+                                             cancellable, error))
     goto out;
 
   ret = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]