GNUNET_free (uric);
if (uri2 == NULL)
{
+ fprintf (stderr, "URI parsing failed: %s\n", emsg);
GNUNET_break (0);
GNUNET_FS_uri_destroy (uri);
GNUNET_CONFIGURATION_destroy (cfg);
char *uri;
struct GNUNET_FS_Uri *ret;
char *emsg;
- struct GNUNET_PseudonymHandle *ph;
- struct GNUNET_PseudonymIdentifier id;
+ struct GNUNET_CRYPTO_EccPrivateKey *ph;
+ struct GNUNET_CRYPTO_EccPublicSignKey id;
char buf[1024];
char ubuf[1024];
char *sret;
GNUNET_assert (0);
}
GNUNET_free (emsg);
- ph = GNUNET_PSEUDONYM_create (NULL);
- GNUNET_PSEUDONYM_get_identifier (ph, &id);
+ ph = GNUNET_CRYPTO_ecc_key_create ();
+ GNUNET_CRYPTO_ecc_key_get_public_for_signature (ph, &id);
sret = GNUNET_STRINGS_data_to_string (&id, sizeof (id),
ubuf, sizeof (ubuf) - 1);
GNUNET_assert (NULL != sret);
return 0;
}
+
static int
testFile (int i)
{