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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 858649bbd..acc13ba67 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -40,7 +40,7 @@ struct GNUNET_REVOCATION_Query
40 * Connection to the service. 40 * Connection to the service.
41 */ 41 */
42 struct GNUNET_CLIENT_Connection *client; 42 struct GNUNET_CLIENT_Connection *client;
43 43
44 /** 44 /**
45 * Our configuration. 45 * Our configuration.
46 */ 46 */
@@ -196,12 +196,12 @@ GNUNET_REVOCATION_query_cancel (struct GNUNET_REVOCATION_Query *q)
196 */ 196 */
197struct GNUNET_REVOCATION_Handle 197struct GNUNET_REVOCATION_Handle
198{ 198{
199 199
200 /** 200 /**
201 * Connection to the service. 201 * Connection to the service.
202 */ 202 */
203 struct GNUNET_CLIENT_Connection *client; 203 struct GNUNET_CLIENT_Connection *client;
204 204
205 /** 205 /**
206 * Our configuration. 206 * Our configuration.
207 */ 207 */
@@ -265,7 +265,7 @@ handle_revocation_response (void *cls,
265 rrm = (const struct RevocationResponseMessage *) msg; 265 rrm = (const struct RevocationResponseMessage *) msg;
266 h->func (h->func_cls, ntohl (rrm->is_valid)); 266 h->func (h->func_cls, ntohl (rrm->is_valid));
267 GNUNET_REVOCATION_revoke_cancel (h); 267 GNUNET_REVOCATION_revoke_cancel (h);
268 268
269} 269}
270 270
271 271
@@ -337,7 +337,7 @@ GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg,
337 struct GNUNET_REVOCATION_Handle *h; 337 struct GNUNET_REVOCATION_Handle *h;
338 unsigned long long matching_bits; 338 unsigned long long matching_bits;
339 339
340 if ( (GNUNET_OK == 340 if ( (GNUNET_OK ==
341 GNUNET_CONFIGURATION_get_value_number (cfg, 341 GNUNET_CONFIGURATION_get_value_number (cfg,
342 "REVOCATION", 342 "REVOCATION",
343 "WORKBITS", 343 "WORKBITS",
@@ -398,11 +398,11 @@ pow_hash (const void *buf,
398 size_t buf_len, 398 size_t buf_len,
399 struct GNUNET_HashCode *result) 399 struct GNUNET_HashCode *result)
400{ 400{
401 GNUNET_break (0 == 401 GNUNET_break (0 ==
402 gcry_kdf_derive (buf, buf_len, 402 gcry_kdf_derive (buf, buf_len,
403 GCRY_KDF_SCRYPT, 403 GCRY_KDF_SCRYPT,
404 1 /* subalgo */, 404 1 /* subalgo */,
405 "gnunet-revocation-proof-of-work", 405 "gnunet-revocation-proof-of-work",
406 strlen ("gnunet-revocation-proof-of-work"), 406 strlen ("gnunet-revocation-proof-of-work"),
407 2 /* iterations; keep cost of individual op small */, 407 2 /* iterations; keep cost of individual op small */,
408 sizeof (struct GNUNET_HashCode), result)); 408 sizeof (struct GNUNET_HashCode), result));