X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ffs%2Ffs_unindex.c;h=c87c4e4e9ae342ccaf06fab28fb2051b636eb4e3;hb=6da7b6a2dc5ec3645d5f8bdbd4ab77d6090b823f;hp=7e189d69711ac5923b0f0223d473cde84d8bf18f;hpb=61c39c60565b386e0e12ea669556b030e8cd7180;p=oweals%2Fgnunet.git diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 7e189d697..c87c4e4e9 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - (C) 2003--2013 Christian Grothoff (and other contributing authors) + Copyright (C) 2003--2013 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -490,10 +490,10 @@ process_kblock_for_unindex (void *cls, } { char pt[size - sizeof (struct UBlock)]; - struct GNUNET_CRYPTO_EccPublicSignKey anon_pub; + struct GNUNET_CRYPTO_EcdsaPublicKey anon_pub; const char *keyword; - GNUNET_CRYPTO_ecc_key_get_public_for_signature (GNUNET_CRYPTO_ecc_key_get_anonymous (), + GNUNET_CRYPTO_ecdsa_key_get_public (GNUNET_CRYPTO_ecdsa_key_get_anonymous (), &anon_pub); keyword = &uc->ksk_uri->data.ksk.keywords[uc->ksk_offset][1]; GNUNET_FS_ublock_decrypt_ (&ub[1], size - sizeof (struct UBlock), @@ -550,9 +550,9 @@ void GNUNET_FS_unindex_do_remove_kblocks_ (struct GNUNET_FS_UnindexContext *uc) { const char *keyword; - const struct GNUNET_CRYPTO_EccPrivateKey *anon; - struct GNUNET_CRYPTO_EccPublicSignKey anon_pub; - struct GNUNET_CRYPTO_EccPublicSignKey dpub; + const struct GNUNET_CRYPTO_EcdsaPrivateKey *anon; + struct GNUNET_CRYPTO_EcdsaPublicKey anon_pub; + struct GNUNET_CRYPTO_EcdsaPublicKey dpub; if (NULL == uc->dsh) uc->dsh = GNUNET_DATASTORE_connect (uc->h->cfg); @@ -570,10 +570,10 @@ GNUNET_FS_unindex_do_remove_kblocks_ (struct GNUNET_FS_UnindexContext *uc) unindex_finish (uc); return; } - anon = GNUNET_CRYPTO_ecc_key_get_anonymous (); - GNUNET_CRYPTO_ecc_key_get_public_for_signature (anon, &anon_pub); + anon = GNUNET_CRYPTO_ecdsa_key_get_anonymous (); + GNUNET_CRYPTO_ecdsa_key_get_public (anon, &anon_pub); keyword = &uc->ksk_uri->data.ksk.keywords[uc->ksk_offset][1]; - GNUNET_CRYPTO_ecc_public_key_derive (&anon_pub, + GNUNET_CRYPTO_ecdsa_public_key_derive (&anon_pub, keyword, "fs-ublock", &dpub); @@ -767,7 +767,7 @@ GNUNET_FS_unindex_start (struct GNUNET_FS_Handle *h, if (GNUNET_OK != GNUNET_DISK_file_size (filename, &size, GNUNET_YES, GNUNET_YES)) return NULL; - ret = GNUNET_malloc (sizeof (struct GNUNET_FS_UnindexContext)); + ret = GNUNET_new (struct GNUNET_FS_UnindexContext); ret->h = h; ret->filename = GNUNET_strdup (filename); ret->start_time = GNUNET_TIME_absolute_get ();