summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-08-28 23:43:11 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2015-08-29 09:53:04 -0700
commit0268ca317e4c9c1f453041b6b10d58eda332329e (patch)
tree1f177f50adf82c62443f608210c28f503ad0a2e7 /daemon
parenta79d4ad21c0ae044b6586750d43f2bf441e34aac (diff)
downloadgnome-keyring-0268ca317e4c9c1f453041b6b10d58eda332329e.tar.gz
dbus: fix marshalling of OpenSession result
We should use g_variant_new_fixed_array() in this case, as what we have is not a bytestring. Fixes a regression from the GDBus port.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/dbus/gkd-secret-session.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/daemon/dbus/gkd-secret-session.c b/daemon/dbus/gkd-secret-session.c
index 0108ac0f..08d47c4c 100644
--- a/daemon/dbus/gkd-secret-session.c
+++ b/daemon/dbus/gkd-secret-session.c
@@ -226,11 +226,9 @@ aes_negotiate (GkdSecretSession *self,
take_session_key (self, key, CKM_AES_CBC_PAD);
if (output_variant != NULL) {
- GVariantBuilder builder;
-
- g_variant_builder_init (&builder, G_VARIANT_TYPE ("ay"));
- g_variant_builder_add (&builder, "y", (const gchar *) output);
- *output_variant = g_variant_new_variant (g_variant_builder_end (&builder));
+ *output_variant = g_variant_new_variant (g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
+ output, n_output,
+ sizeof (guchar)));
}
if (result != NULL) {