diff options
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r-- | src/namestore/namestore_api_monitor.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c index a99b386d0..ec4ba879b 100644 --- a/src/namestore/namestore_api_monitor.c +++ b/src/namestore/namestore_api_monitor.c | |||
@@ -90,7 +90,7 @@ struct GNUNET_NAMESTORE_ZoneMonitor | |||
90 | /** | 90 | /** |
91 | * Monitored zone. | 91 | * Monitored zone. |
92 | */ | 92 | */ |
93 | struct GNUNET_IDENTITY_PrivateKey zone; | 93 | struct GNUNET_CRYPTO_PrivateKey zone; |
94 | 94 | ||
95 | /** | 95 | /** |
96 | * Do we first iterate over all existing records? | 96 | * Do we first iterate over all existing records? |
@@ -211,7 +211,7 @@ static void | |||
211 | handle_result (void *cls, const struct RecordResultMessage *lrm) | 211 | handle_result (void *cls, const struct RecordResultMessage *lrm) |
212 | { | 212 | { |
213 | struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls; | 213 | struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls; |
214 | struct GNUNET_IDENTITY_PrivateKey private_key; | 214 | struct GNUNET_CRYPTO_PrivateKey private_key; |
215 | size_t name_len; | 215 | size_t name_len; |
216 | size_t rd_len; | 216 | size_t rd_len; |
217 | size_t key_len; | 217 | size_t key_len; |
@@ -226,7 +226,7 @@ handle_result (void *cls, const struct RecordResultMessage *lrm) | |||
226 | name_len = ntohs (lrm->name_len); | 226 | name_len = ntohs (lrm->name_len); |
227 | name_tmp = (const char *) &lrm[1] + key_len; | 227 | name_tmp = (const char *) &lrm[1] + key_len; |
228 | GNUNET_assert (GNUNET_SYSERR != | 228 | GNUNET_assert (GNUNET_SYSERR != |
229 | GNUNET_IDENTITY_read_private_key_from_buffer (&lrm[1], | 229 | GNUNET_CRYPTO_read_private_key_from_buffer (&lrm[1], |
230 | key_len, | 230 | key_len, |
231 | &private_key, | 231 | &private_key, |
232 | &kbytes_read)); | 232 | &kbytes_read)); |
@@ -303,7 +303,7 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) | |||
303 | GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START); | 303 | GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START); |
304 | sm->iterate_first = htonl (zm->iterate_first); | 304 | sm->iterate_first = htonl (zm->iterate_first); |
305 | if (0 < zm->key_len) | 305 | if (0 < zm->key_len) |
306 | GNUNET_IDENTITY_write_private_key_to_buffer (&zm->zone, | 306 | GNUNET_CRYPTO_write_private_key_to_buffer (&zm->zone, |
307 | &sm[1], | 307 | &sm[1], |
308 | zm->key_len); | 308 | zm->key_len); |
309 | sm->key_len = htons (zm->key_len); | 309 | sm->key_len = htons (zm->key_len); |
@@ -315,7 +315,7 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) | |||
315 | struct GNUNET_NAMESTORE_ZoneMonitor * | 315 | struct GNUNET_NAMESTORE_ZoneMonitor * |
316 | GNUNET_NAMESTORE_zone_monitor_start ( | 316 | GNUNET_NAMESTORE_zone_monitor_start ( |
317 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 317 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
318 | const struct GNUNET_IDENTITY_PrivateKey *zone, | 318 | const struct GNUNET_CRYPTO_PrivateKey *zone, |
319 | int iterate_first, | 319 | int iterate_first, |
320 | GNUNET_SCHEDULER_TaskCallback error_cb, | 320 | GNUNET_SCHEDULER_TaskCallback error_cb, |
321 | void *error_cb_cls, | 321 | void *error_cb_cls, |
@@ -329,7 +329,7 @@ GNUNET_NAMESTORE_zone_monitor_start ( | |||
329 | zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor); | 329 | zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor); |
330 | if (NULL != zone) | 330 | if (NULL != zone) |
331 | { | 331 | { |
332 | zm->key_len = GNUNET_IDENTITY_private_key_get_length (zone); | 332 | zm->key_len = GNUNET_CRYPTO_private_key_get_length (zone); |
333 | zm->zone = *zone; | 333 | zm->zone = *zone; |
334 | } | 334 | } |
335 | zm->iterate_first = iterate_first; | 335 | zm->iterate_first = iterate_first; |
@@ -352,7 +352,7 @@ GNUNET_NAMESTORE_zone_monitor_start ( | |||
352 | struct GNUNET_NAMESTORE_ZoneMonitor * | 352 | struct GNUNET_NAMESTORE_ZoneMonitor * |
353 | GNUNET_NAMESTORE_zone_monitor_start2 ( | 353 | GNUNET_NAMESTORE_zone_monitor_start2 ( |
354 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 354 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
355 | const struct GNUNET_IDENTITY_PrivateKey *zone, | 355 | const struct GNUNET_CRYPTO_PrivateKey *zone, |
356 | int iterate_first, | 356 | int iterate_first, |
357 | GNUNET_SCHEDULER_TaskCallback error_cb, | 357 | GNUNET_SCHEDULER_TaskCallback error_cb, |
358 | void *error_cb_cls, | 358 | void *error_cb_cls, |
@@ -367,7 +367,7 @@ GNUNET_NAMESTORE_zone_monitor_start2 ( | |||
367 | zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor); | 367 | zm = GNUNET_new (struct GNUNET_NAMESTORE_ZoneMonitor); |
368 | if (NULL != zone) | 368 | if (NULL != zone) |
369 | { | 369 | { |
370 | zm->key_len = GNUNET_IDENTITY_private_key_get_length (zone); | 370 | zm->key_len = GNUNET_CRYPTO_private_key_get_length (zone); |
371 | zm->zone = *zone; | 371 | zm->zone = *zone; |
372 | } | 372 | } |
373 | zm->iterate_first = iterate_first; | 373 | zm->iterate_first = iterate_first; |