X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fpeerinfo%2Ftest_peerinfo_api_friend_only.c;h=e2c4ec57458a4860ed3c61885358a4ad87c681a5;hb=f57cbab24fb7a22fc982eb8b6c4a2d18402be460;hp=d4480165dc8bffab0bc9fca2948f6b6ada8a017c;hpb=a35c5a11d32bdd0bc24f64de36fbc6b0d0b20aae;p=oweals%2Fgnunet.git diff --git a/src/peerinfo/test_peerinfo_api_friend_only.c b/src/peerinfo/test_peerinfo_api_friend_only.c index d4480165d..e2c4ec574 100644 --- a/src/peerinfo/test_peerinfo_api_friend_only.c +++ b/src/peerinfo/test_peerinfo_api_friend_only.c @@ -68,14 +68,12 @@ struct GNUNET_PeerIdentity pid; static void add_peer () { - struct GNUNET_CRYPTO_EccPublicSignKey pkey; struct GNUNET_HELLO_Message *h2; size_t agc; agc = 2; - memset (&pkey, 32, sizeof (pkey)); - GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); - h2 = GNUNET_HELLO_create (&pkey, &address_generator, &agc, GNUNET_YES); + memset (&pid, 32, sizeof (pid)); + h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &agc, GNUNET_YES); GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL); GNUNET_free (h2); @@ -131,7 +129,7 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, static void -run (void *cls, +run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_TESTING_Peer *peer) {