-fixing #3034
[oweals/gnunet.git] / src / fs / test_fs_namespace.c
index c8371f0b534e0f0d1a3542dc155e9ecb83e6f7e0..11c611e0466bda04aec9d59ecf2c0147824720f5 100644 (file)
@@ -29,7 +29,7 @@
 #include "gnunet_fs_service.h"
 
 
-static struct GNUNET_CRYPTO_EccPublicKey nsid;
+static struct GNUNET_CRYPTO_EccPublicSignKey nsid;
 
 static struct GNUNET_FS_Uri *sks_expect_uri;
 
@@ -255,11 +255,11 @@ adv_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg)
   bo.replication_level = 0;
   bo.expiration_time =
       GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES);
-  GNUNET_CRYPTO_ecc_key_get_public (ns, &nsid);
+  GNUNET_CRYPTO_ecc_key_get_public_for_signature (ns, &nsid);
   GNUNET_FS_publish_sks (fs, ns, "this", "next", meta, uri,
                          &bo, GNUNET_FS_PUBLISH_OPTION_NONE, &sks_cont, NULL);
   GNUNET_CONTAINER_meta_data_destroy (meta);
-  GNUNET_CRYPTO_ecc_key_free (ns);
+  GNUNET_free (ns);
 }
 
 
@@ -291,7 +291,7 @@ testNamespace ()
                                     NULL);
   GNUNET_FS_uri_destroy (ksk_uri);
   GNUNET_CONTAINER_meta_data_destroy (meta);
-  GNUNET_CRYPTO_ecc_key_free (ns);
+  GNUNET_free (ns);
 }