diff options
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index f4cd82978..39bb39701 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -92,7 +92,7 @@ struct GNUNET_FS_UpdateInformationGraph | |||
92 | /** | 92 | /** |
93 | * Private key for the namespace. | 93 | * Private key for the namespace. |
94 | */ | 94 | */ |
95 | struct GNUNET_CRYPTO_EccPrivateKey ns; | 95 | struct GNUNET_CRYPTO_EcdsaPrivateKey ns; |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Hash map mapping identifiers of update nodes | 98 | * Hash map mapping identifiers of update nodes |
@@ -127,11 +127,11 @@ struct GNUNET_FS_UpdateInformationGraph | |||
127 | */ | 127 | */ |
128 | static char * | 128 | static char * |
129 | get_update_information_directory (struct GNUNET_FS_Handle *h, | 129 | get_update_information_directory (struct GNUNET_FS_Handle *h, |
130 | const struct GNUNET_CRYPTO_EccPrivateKey *ns) | 130 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *ns) |
131 | { | 131 | { |
132 | char *dn; | 132 | char *dn; |
133 | char *ret; | 133 | char *ret; |
134 | struct GNUNET_CRYPTO_EccPublicSignKey pub; | 134 | struct GNUNET_CRYPTO_EcdsaPublicKey pub; |
135 | struct GNUNET_HashCode hc; | 135 | struct GNUNET_HashCode hc; |
136 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 136 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
137 | 137 | ||
@@ -143,7 +143,7 @@ get_update_information_directory (struct GNUNET_FS_Handle *h, | |||
143 | "fs", "UPDATE_DIR"); | 143 | "fs", "UPDATE_DIR"); |
144 | return NULL; | 144 | return NULL; |
145 | } | 145 | } |
146 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (ns, &pub); | 146 | GNUNET_CRYPTO_ecdsa_key_get_public (ns, &pub); |
147 | GNUNET_CRYPTO_hash (&pub, sizeof (pub), &hc); | 147 | GNUNET_CRYPTO_hash (&pub, sizeof (pub), &hc); |
148 | GNUNET_CRYPTO_hash_to_enc (&hc, | 148 | GNUNET_CRYPTO_hash_to_enc (&hc, |
149 | &enc); | 149 | &enc); |
@@ -241,7 +241,7 @@ END: | |||
241 | */ | 241 | */ |
242 | static struct GNUNET_FS_UpdateInformationGraph * | 242 | static struct GNUNET_FS_UpdateInformationGraph * |
243 | read_update_information_graph (struct GNUNET_FS_Handle *h, | 243 | read_update_information_graph (struct GNUNET_FS_Handle *h, |
244 | const struct GNUNET_CRYPTO_EccPrivateKey *ns) | 244 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *ns) |
245 | { | 245 | { |
246 | struct GNUNET_FS_UpdateInformationGraph *uig; | 246 | struct GNUNET_FS_UpdateInformationGraph *uig; |
247 | char *fn; | 247 | char *fn; |
@@ -346,7 +346,7 @@ struct GNUNET_FS_PublishSksContext | |||
346 | /** | 346 | /** |
347 | * Namespace we're publishing to. | 347 | * Namespace we're publishing to. |
348 | */ | 348 | */ |
349 | struct GNUNET_CRYPTO_EccPrivateKey ns; | 349 | struct GNUNET_CRYPTO_EcdsaPrivateKey ns; |
350 | 350 | ||
351 | /** | 351 | /** |
352 | * Handle to the datastore. | 352 | * Handle to the datastore. |
@@ -434,7 +434,7 @@ sks_publish_cont (void *cls, | |||
434 | */ | 434 | */ |
435 | struct GNUNET_FS_PublishSksContext * | 435 | struct GNUNET_FS_PublishSksContext * |
436 | GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | 436 | GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, |
437 | const struct GNUNET_CRYPTO_EccPrivateKey *ns, | 437 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *ns, |
438 | const char *identifier, const char *update, | 438 | const char *identifier, const char *update, |
439 | const struct GNUNET_CONTAINER_MetaData *meta, | 439 | const struct GNUNET_CONTAINER_MetaData *meta, |
440 | const struct GNUNET_FS_Uri *uri, | 440 | const struct GNUNET_FS_Uri *uri, |
@@ -448,7 +448,7 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | |||
448 | sks_uri = GNUNET_new (struct GNUNET_FS_Uri); | 448 | sks_uri = GNUNET_new (struct GNUNET_FS_Uri); |
449 | sks_uri->type = GNUNET_FS_URI_SKS; | 449 | sks_uri->type = GNUNET_FS_URI_SKS; |
450 | sks_uri->data.sks.identifier = GNUNET_strdup (identifier); | 450 | sks_uri->data.sks.identifier = GNUNET_strdup (identifier); |
451 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (ns, | 451 | GNUNET_CRYPTO_ecdsa_key_get_public (ns, |
452 | &sks_uri->data.sks.ns); | 452 | &sks_uri->data.sks.ns); |
453 | 453 | ||
454 | psc = GNUNET_new (struct GNUNET_FS_PublishSksContext); | 454 | psc = GNUNET_new (struct GNUNET_FS_PublishSksContext); |
@@ -679,7 +679,7 @@ find_trees (void *cls, | |||
679 | */ | 679 | */ |
680 | void | 680 | void |
681 | GNUNET_FS_namespace_list_updateable (struct GNUNET_FS_Handle *h, | 681 | GNUNET_FS_namespace_list_updateable (struct GNUNET_FS_Handle *h, |
682 | const struct GNUNET_CRYPTO_EccPrivateKey *ns, | 682 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *ns, |
683 | const char *next_id, | 683 | const char *next_id, |
684 | GNUNET_FS_IdentifierProcessor ip, | 684 | GNUNET_FS_IdentifierProcessor ip, |
685 | void *ip_cls) | 685 | void *ip_cls) |