diff options
Diffstat (limited to 'src/gns/gnunet-gns-import.c')
-rw-r--r-- | src/gns/gnunet-gns-import.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gns/gnunet-gns-import.c b/src/gns/gnunet-gns-import.c index 064294234..0dc04064a 100644 --- a/src/gns/gnunet-gns-import.c +++ b/src/gns/gnunet-gns-import.c | |||
@@ -163,6 +163,7 @@ run_process_and_wait (int pipe_control, | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | |||
166 | static void | 167 | static void |
167 | check_pkey (unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, | 168 | check_pkey (unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, |
168 | char *pk, int *found_rec) | 169 | char *pk, int *found_rec) |
@@ -186,6 +187,7 @@ check_pkey (unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, | |||
186 | } | 187 | } |
187 | } | 188 | } |
188 | 189 | ||
190 | |||
189 | /** | 191 | /** |
190 | * Process a record that was stored in the namestore. | 192 | * Process a record that was stored in the namestore. |
191 | * | 193 | * |
@@ -211,6 +213,7 @@ zone_iterator (void *cls, | |||
211 | GNUNET_NAMESTORE_zone_iterator_next (list_it); | 213 | GNUNET_NAMESTORE_zone_iterator_next (list_it); |
212 | } | 214 | } |
213 | 215 | ||
216 | |||
214 | static void | 217 | static void |
215 | zone_iteration_error (void *cls) | 218 | zone_iteration_error (void *cls) |
216 | { | 219 | { |
@@ -322,17 +325,19 @@ get_ego (void *cls, | |||
322 | GNUNET_IDENTITY_ego_get_public_key (ego, &pk); | 325 | GNUNET_IDENTITY_ego_get_public_key (ego, &pk); |
323 | if (NULL != identifier) | 326 | if (NULL != identifier) |
324 | { | 327 | { |
325 | if ((NULL == master_zone_pkey) &&(0 == strcmp ("master-zone", identifier)) ) | 328 | if ((NULL == master_zone_pkey) && (0 == strcmp ("master-zone", |
329 | identifier)) ) | ||
326 | { | 330 | { |
327 | master_zone_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&pk); | 331 | master_zone_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&pk); |
328 | master_pk = *GNUNET_IDENTITY_ego_get_private_key (ego); | 332 | master_pk = *GNUNET_IDENTITY_ego_get_private_key (ego); |
329 | } | 333 | } |
330 | else if ((NULL == private_zone_pkey) &&(0 == strcmp ("private-zone", | 334 | else if ((NULL == private_zone_pkey) && (0 == strcmp ("private-zone", |
331 | identifier)) ) | 335 | identifier)) ) |
332 | private_zone_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&pk); | 336 | private_zone_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&pk); |
333 | } | 337 | } |
334 | } | 338 | } |
335 | 339 | ||
340 | |||
336 | /** | 341 | /** |
337 | * Task run on shutdown. | 342 | * Task run on shutdown. |
338 | * | 343 | * |
@@ -362,6 +367,7 @@ shutdown_task (void *cls) | |||
362 | } | 367 | } |
363 | } | 368 | } |
364 | 369 | ||
370 | |||
365 | /** | 371 | /** |
366 | * Main function that will be run. | 372 | * Main function that will be run. |
367 | * | 373 | * |
@@ -484,4 +490,5 @@ main (int argc, char *const *argv) | |||
484 | return GNUNET_OK == r ? ret : 1; | 490 | return GNUNET_OK == r ? ret : 1; |
485 | } | 491 | } |
486 | 492 | ||
493 | |||
487 | /* end of gnunet-gns-import.c */ | 494 | /* end of gnunet-gns-import.c */ |