aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/revocation_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/revocation_api.c')
-rw-r--r--src/revocation/revocation_api.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 34b4eddd7..a0813ddcd 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -175,6 +175,7 @@ GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg,
175 }; 175 };
176 struct QueryMessage *qm; 176 struct QueryMessage *qm;
177 struct GNUNET_MQ_Envelope *env; 177 struct GNUNET_MQ_Envelope *env;
178 size_t key_len;
178 179
179 q->mq = GNUNET_CLIENT_connect (cfg, 180 q->mq = GNUNET_CLIENT_connect (cfg,
180 "revocation", 181 "revocation",
@@ -188,10 +189,11 @@ GNUNET_REVOCATION_query (const struct GNUNET_CONFIGURATION_Handle *cfg,
188 } 189 }
189 q->func = func; 190 q->func = func;
190 q->func_cls = func_cls; 191 q->func_cls = func_cls;
191 env = GNUNET_MQ_msg (qm, 192 key_len = GNUNET_IDENTITY_public_key_get_length (key);
192 GNUNET_MESSAGE_TYPE_REVOCATION_QUERY); 193 env = GNUNET_MQ_msg_extra (qm, key_len,
193 qm->reserved = htonl (0); 194 GNUNET_MESSAGE_TYPE_REVOCATION_QUERY);
194 qm->key = *key; 195 GNUNET_IDENTITY_write_public_key_to_buffer (key, &qm[1], key_len);
196 qm->key_len = htonl (key_len);
195 GNUNET_MQ_send (q->mq, 197 GNUNET_MQ_send (q->mq,
196 env); 198 env);
197 return q; 199 return q;