diff options
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index 87ddb667f..e129d70f8 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -245,7 +245,7 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name) | |||
245 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); | 245 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); |
246 | ret->h = h; | 246 | ret->h = h; |
247 | ret->rc = 1; | 247 | ret->rc = 1; |
248 | ret->key = GNUNET_PSEUDONYM_create (fn); | 248 | ret->key = GNUNET_FS_pseudonym_create (fn); |
249 | if (NULL == ret->key) | 249 | if (NULL == ret->key) |
250 | { | 250 | { |
251 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 251 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
@@ -289,7 +289,7 @@ GNUNET_FS_namespace_open_existing (struct GNUNET_FS_Handle *h, const char *name) | |||
289 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); | 289 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); |
290 | ret->h = h; | 290 | ret->h = h; |
291 | ret->rc = 1; | 291 | ret->rc = 1; |
292 | ret->key = GNUNET_PSEUDONYM_create_from_existing_file (fn); | 292 | ret->key = GNUNET_FS_pseudonym_create_from_existing_file (fn); |
293 | if (NULL == ret->key) | 293 | if (NULL == ret->key) |
294 | { | 294 | { |
295 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 295 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
@@ -384,7 +384,7 @@ GNUNET_FS_namespace_delete (struct GNUNET_FS_Namespace *ns, int freeze) | |||
384 | } | 384 | } |
385 | if (0 != ns->rc) | 385 | if (0 != ns->rc) |
386 | return GNUNET_OK; | 386 | return GNUNET_OK; |
387 | GNUNET_PSEUDONYM_destroy (ns->key); | 387 | GNUNET_FS_pseudonym_destroy (ns->key); |
388 | GNUNET_free (ns->filename); | 388 | GNUNET_free (ns->filename); |
389 | GNUNET_free (ns->name); | 389 | GNUNET_free (ns->name); |
390 | for (i = 0; i < ns->update_node_count; i++) | 390 | for (i = 0; i < ns->update_node_count; i++) |
@@ -433,11 +433,11 @@ struct ProcessNamespaceContext | |||
433 | */ | 433 | */ |
434 | int | 434 | int |
435 | GNUNET_FS_namespace_get_public_identifier (struct GNUNET_FS_Namespace *ns, | 435 | GNUNET_FS_namespace_get_public_identifier (struct GNUNET_FS_Namespace *ns, |
436 | struct GNUNET_PseudonymIdentifier *id) | 436 | struct GNUNET_FS_PseudonymIdentifier *id) |
437 | { | 437 | { |
438 | if ((NULL == ns) || (NULL == id)) | 438 | if ((NULL == ns) || (NULL == id)) |
439 | return GNUNET_SYSERR; | 439 | return GNUNET_SYSERR; |
440 | GNUNET_PSEUDONYM_get_identifier (ns->key, id); | 440 | GNUNET_FS_pseudonym_get_identifier (ns->key, id); |
441 | return GNUNET_OK; | 441 | return GNUNET_OK; |
442 | } | 442 | } |
443 | 443 | ||
@@ -455,12 +455,12 @@ static int | |||
455 | process_namespace (void *cls, const char *filename) | 455 | process_namespace (void *cls, const char *filename) |
456 | { | 456 | { |
457 | struct ProcessNamespaceContext *pnc = cls; | 457 | struct ProcessNamespaceContext *pnc = cls; |
458 | struct GNUNET_PseudonymHandle *ph; | 458 | struct GNUNET_FS_PseudonymHandle *ph; |
459 | struct GNUNET_PseudonymIdentifier id; | 459 | struct GNUNET_FS_PseudonymIdentifier id; |
460 | const char *name; | 460 | const char *name; |
461 | const char *t; | 461 | const char *t; |
462 | 462 | ||
463 | if (NULL == (ph = GNUNET_PSEUDONYM_create (filename))) | 463 | if (NULL == (ph = GNUNET_FS_pseudonym_create (filename))) |
464 | { | 464 | { |
465 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 465 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
466 | _ | 466 | _ |
@@ -470,8 +470,8 @@ process_namespace (void *cls, const char *filename) | |||
470 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); | 470 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); |
471 | return GNUNET_OK; | 471 | return GNUNET_OK; |
472 | } | 472 | } |
473 | GNUNET_PSEUDONYM_get_identifier (ph, &id); | 473 | GNUNET_FS_pseudonym_get_identifier (ph, &id); |
474 | GNUNET_PSEUDONYM_destroy (ph); | 474 | GNUNET_FS_pseudonym_destroy (ph); |
475 | name = filename; | 475 | name = filename; |
476 | while (NULL != (t = strstr (name, DIR_SEPARATOR_STR))) | 476 | while (NULL != (t = strstr (name, DIR_SEPARATOR_STR))) |
477 | name = t + 1; | 477 | name = t + 1; |
@@ -714,14 +714,14 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | |||
714 | &sk, &iv, | 714 | &sk, &iv, |
715 | &ub_enc[1]); | 715 | &ub_enc[1]); |
716 | ub_enc->purpose.size = htonl (nidlen + slen + mdsize + sizeof (struct UBlock) | 716 | ub_enc->purpose.size = htonl (nidlen + slen + mdsize + sizeof (struct UBlock) |
717 | - sizeof (struct GNUNET_PseudonymSignature)); | 717 | - sizeof (struct GNUNET_FS_PseudonymSignature)); |
718 | ub_enc->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK); | 718 | ub_enc->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK); |
719 | GNUNET_PSEUDONYM_sign (ns->key, | 719 | GNUNET_FS_pseudonym_sign (ns->key, |
720 | &ub_enc->purpose, | 720 | &ub_enc->purpose, |
721 | NULL, | 721 | NULL, |
722 | &signing_key, | 722 | &signing_key, |
723 | &ub_enc->signature); | 723 | &ub_enc->signature); |
724 | GNUNET_PSEUDONYM_derive_verification_key (&sks_uri->data.sks.ns, | 724 | GNUNET_FS_pseudonym_derive_verification_key (&sks_uri->data.sks.ns, |
725 | &signing_key, | 725 | &signing_key, |
726 | &ub_enc->verification_key); | 726 | &ub_enc->verification_key); |
727 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, | 727 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, |