summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStefan Walter <stefw@src.gnome.org>2008-08-10 17:06:38 +0000
committerStefan Walter <stefw@src.gnome.org>2008-08-10 17:06:38 +0000
commit793c71cba5c3c453c19908b0d8c1fdb46ce74153 (patch)
treef647911cc4942a2efd60a2c64f1985dcdafce92c /daemon
parent85e7d615d4b7894e129bb81398ebd10034dfe74b (diff)
Add objects to storage list after storing them.
* daemon/pk/gkr-pk-object-storage.c: * daemon/ssh/gkr-ssh-storage.c: Add objects to storage list after storing them. svn path=/trunk/; revision=1233
Diffstat (limited to 'daemon')
-rw-r--r--daemon/pk/gkr-pk-object-storage.c1
-rw-r--r--daemon/ssh/gkr-ssh-storage.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/daemon/pk/gkr-pk-object-storage.c b/daemon/pk/gkr-pk-object-storage.c
index 2b922115..39790435 100644
--- a/daemon/pk/gkr-pk-object-storage.c
+++ b/daemon/pk/gkr-pk-object-storage.c
@@ -412,6 +412,7 @@ gkr_pk_object_storage_store (GkrPkStorage *stor, GkrPkObject *obj, GError **err)
if (ret) {
/* The object now has a (possibly new) location, and possibly new digest */
g_object_set (obj, "location", loc, "storage", stor, "digest", digest, NULL);
+ gkr_pk_storage_add_object (stor, obj);
}
gkr_id_free (digest);
diff --git a/daemon/ssh/gkr-ssh-storage.c b/daemon/ssh/gkr-ssh-storage.c
index af45ec92..3d57e324 100644
--- a/daemon/ssh/gkr-ssh-storage.c
+++ b/daemon/ssh/gkr-ssh-storage.c
@@ -627,6 +627,7 @@ gkr_ssh_storage_store (GkrPkStorage *stor, GkrPkObject *obj, GError **err)
/* The object now has a (possibly new) location */
g_object_set (obj, "location", loc, "storage", stor, "digest", digest, NULL);
+ gkr_pk_storage_add_object (stor, obj);
gkr_id_free (digest);
/* Now store the public key in place if possible */