From 93522adc0728de13e94a7b13730781345144e434 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 7 Oct 2011 11:08:40 +0000 Subject: removing 'publicKey' argument from CORE init callback --- src/core/core_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/core_api.c') diff --git a/src/core/core_api.c b/src/core/core_api.c index 3624a6e7f..24013b7cf 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -870,9 +870,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg) trigger_next_request (h, GNUNET_NO); } h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; - GNUNET_CRYPTO_hash (&m->publicKey, - sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), - &h->me.hashPubKey); + h->me = m->my_identity; if (NULL != (init = h->init)) { /* mark so we don't call init on reconnect */ @@ -882,7 +880,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg) "Connected to core service of peer `%s'.\n", GNUNET_i2s (&h->me)); #endif - init (h->cls, h, &h->me, &m->publicKey); + init (h->cls, h, &h->me); } else { -- cgit v1.2.3