diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-07 11:08:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-07 11:08:40 +0000 |
commit | 93522adc0728de13e94a7b13730781345144e434 (patch) | |
tree | 5e8389010559b5c326909bba7d8b18b858eeab35 /src/core/core_api.c | |
parent | a3247ccf829ff52285721529bbcba00a0da39dcd (diff) | |
download | gnunet-93522adc0728de13e94a7b13730781345144e434.tar.gz gnunet-93522adc0728de13e94a7b13730781345144e434.zip |
removing 'publicKey' argument from CORE init callback
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) | |||
870 | trigger_next_request (h, GNUNET_NO); | 870 | trigger_next_request (h, GNUNET_NO); |
871 | } | 871 | } |
872 | h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; | 872 | h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; |
873 | GNUNET_CRYPTO_hash (&m->publicKey, | 873 | h->me = m->my_identity; |
874 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | ||
875 | &h->me.hashPubKey); | ||
876 | if (NULL != (init = h->init)) | 874 | if (NULL != (init = h->init)) |
877 | { | 875 | { |
878 | /* mark so we don't call init on reconnect */ | 876 | /* mark so we don't call init on reconnect */ |
@@ -882,7 +880,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg) | |||
882 | "Connected to core service of peer `%s'.\n", | 880 | "Connected to core service of peer `%s'.\n", |
883 | GNUNET_i2s (&h->me)); | 881 | GNUNET_i2s (&h->me)); |
884 | #endif | 882 | #endif |
885 | init (h->cls, h, &h->me, &m->publicKey); | 883 | init (h->cls, h, &h->me); |
886 | } | 884 | } |
887 | else | 885 | else |
888 | { | 886 | { |