element.data = "hello";
element.size = strlen(element.data);
GNUNET_SET_add_element (iter_set, &element, NULL, NULL);
element.data = "hello";
element.size = strlen(element.data);
GNUNET_SET_add_element (iter_set, &element, NULL, NULL);
/**
* Signature of the 'main' function for a (single-peer) testcase that
* is run using 'GNUNET_TESTING_peer_run'.
/**
* Signature of the 'main' function for a (single-peer) testcase that
* is run using 'GNUNET_TESTING_peer_run'.
* @param cls closure
* @param cfg configuration of the peer that was started
* @param peer identity of the peer that was created
* @param cls closure
* @param cfg configuration of the peer that was started
* @param peer identity of the peer that was created
- GNUNET_CRYPTO_get_host_identity (cfg, &local_id);
- printf ("my id (from CRYPTO): %s\n", GNUNET_h2s (&local_id.hashPubKey));
+ GNUNET_CRYPTO_get_peer_identity (cfg, &local_id);
+ printf ("my id (from CRYPTO): %s\n", GNUNET_i2s (&local_id));