aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/gnunet-revocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r--src/revocation/gnunet-revocation.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c
index 10259fc99..1859722d8 100644
--- a/src/revocation/gnunet-revocation.c
+++ b/src/revocation/gnunet-revocation.c
@@ -61,7 +61,7 @@ static struct GNUNET_REVOCATION_Query *q;
61 61
62/** 62/**
63 * Handle for revocation. 63 * Handle for revocation.
64 */ 64 */
65static struct GNUNET_REVOCATION_Handle *h; 65static struct GNUNET_REVOCATION_Handle *h;
66 66
67/** 67/**
@@ -71,12 +71,12 @@ static struct GNUNET_IDENTITY_EgoLookup *el;
71 71
72/** 72/**
73 * Our configuration. 73 * Our configuration.
74 */ 74 */
75static const struct GNUNET_CONFIGURATION_Handle *cfg; 75static const struct GNUNET_CONFIGURATION_Handle *cfg;
76 76
77/** 77/**
78 * Number of matching bits required for revocation. 78 * Number of matching bits required for revocation.
79 */ 79 */
80static unsigned long long matching_bits; 80static unsigned long long matching_bits;
81 81
82 82
@@ -178,7 +178,7 @@ print_revocation_result (void *cls,
178/** 178/**
179 * Data needed to perform a revocation. 179 * Data needed to perform a revocation.
180 */ 180 */
181struct RevocationData 181struct RevocationData
182{ 182{
183 /** 183 /**
184 * Public key. 184 * Public key.
@@ -226,7 +226,7 @@ calculate_pow (void *cls,
226 226
227 if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) || 227 if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) ||
228 (0 == (rd->pow % 128) ) ) 228 (0 == (rd->pow % 128) ) )
229 { 229 {
230 if (0 == (rd->pow % 128 * 1024)) 230 if (0 == (rd->pow % 128 * 1024))
231 { 231 {
232 if (0 == (rd->pow % (1024 * 128 * 80))) 232 if (0 == (rd->pow % (1024 * 128 * 80)))
@@ -308,7 +308,7 @@ ego_callback (void *cls,
308 &key); 308 &key);
309 rd = GNUNET_new (struct RevocationData); 309 rd = GNUNET_new (struct RevocationData);
310 if ( (NULL != filename) && 310 if ( (NULL != filename) &&
311 (GNUNET_YES == 311 (GNUNET_YES ==
312 GNUNET_DISK_file_test (filename)) && 312 GNUNET_DISK_file_test (filename)) &&
313 (sizeof (struct RevocationData) == 313 (sizeof (struct RevocationData) ==
314 GNUNET_DISK_fn_read (filename, 314 GNUNET_DISK_fn_read (filename,
@@ -325,10 +325,10 @@ ego_callback (void *cls,
325 revoke_ego); 325 revoke_ego);
326 GNUNET_free (rd); 326 GNUNET_free (rd);
327 return; 327 return;
328 } 328 }
329 } 329 }
330 else 330 else
331 { 331 {
332 GNUNET_REVOCATION_sign_revocation (GNUNET_IDENTITY_ego_get_private_key (ego), 332 GNUNET_REVOCATION_sign_revocation (GNUNET_IDENTITY_ego_get_private_key (ego),
333 &rd->sig); 333 &rd->sig);
334 rd->key = key; 334 rd->key = key;
@@ -362,8 +362,8 @@ ego_callback (void *cls,
362 * @param c configuration 362 * @param c configuration
363 */ 363 */
364static void 364static void
365run (void *cls, 365run (void *cls,
366 char *const *args, 366 char *const *args,
367 const char *cfgfile, 367 const char *cfgfile,
368 const struct GNUNET_CONFIGURATION_Handle *c) 368 const struct GNUNET_CONFIGURATION_Handle *c)
369{ 369{