diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index e04407f02..8e5dd15c5 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -329,7 +329,7 @@ struct SessionDisconnectMessage | |||
329 | /** | 329 | /** |
330 | * Public key of the sender. | 330 | * Public key of the sender. |
331 | */ | 331 | */ |
332 | struct GNUNET_CRYPTO_EccPublicKey public_key; | 332 | struct GNUNET_CRYPTO_EccPublicSignKey public_key; |
333 | 333 | ||
334 | /** | 334 | /** |
335 | * Signature of the peer that sends us the disconnect. Only | 335 | * Signature of the peer that sends us the disconnect. Only |
@@ -1195,7 +1195,7 @@ send_disconnect (struct NeighbourMapEntry *n) | |||
1195 | disconnect_msg.reserved = htonl (0); | 1195 | disconnect_msg.reserved = htonl (0); |
1196 | disconnect_msg.purpose.size = | 1196 | disconnect_msg.purpose.size = |
1197 | htonl (sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 1197 | htonl (sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
1198 | sizeof (struct GNUNET_CRYPTO_EccPublicKey) + | 1198 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey) + |
1199 | sizeof (struct GNUNET_TIME_AbsoluteNBO)); | 1199 | sizeof (struct GNUNET_TIME_AbsoluteNBO)); |
1200 | disconnect_msg.purpose.purpose = | 1200 | disconnect_msg.purpose.purpose = |
1201 | htonl (GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT); | 1201 | htonl (GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT); |
@@ -3155,7 +3155,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity | |||
3155 | return; | 3155 | return; |
3156 | } | 3156 | } |
3157 | GNUNET_CRYPTO_hash (&sdm->public_key, | 3157 | GNUNET_CRYPTO_hash (&sdm->public_key, |
3158 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), | 3158 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), |
3159 | &hc); | 3159 | &hc); |
3160 | if (0 != memcmp (peer, &hc, sizeof (struct GNUNET_PeerIdentity))) | 3160 | if (0 != memcmp (peer, &hc, sizeof (struct GNUNET_PeerIdentity))) |
3161 | { | 3161 | { |
@@ -3164,7 +3164,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity | |||
3164 | } | 3164 | } |
3165 | if (ntohl (sdm->purpose.size) != | 3165 | if (ntohl (sdm->purpose.size) != |
3166 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 3166 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
3167 | sizeof (struct GNUNET_CRYPTO_EccPublicKey) + | 3167 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey) + |
3168 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) | 3168 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) |
3169 | { | 3169 | { |
3170 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 3170 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |