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 269525a55..e0e549a3a 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_EccPublicKeyBinaryEncoded public_key; | 332 | struct GNUNET_CRYPTO_EccPublicKey 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_EccPublicKeyBinaryEncoded) + | 1198 | sizeof (struct GNUNET_CRYPTO_EccPublicKey) + |
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); |
@@ -3151,7 +3151,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity | |||
3151 | return; | 3151 | return; |
3152 | } | 3152 | } |
3153 | GNUNET_CRYPTO_hash (&sdm->public_key, | 3153 | GNUNET_CRYPTO_hash (&sdm->public_key, |
3154 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 3154 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
3155 | &hc); | 3155 | &hc); |
3156 | if (0 != memcmp (peer, &hc, sizeof (struct GNUNET_PeerIdentity))) | 3156 | if (0 != memcmp (peer, &hc, sizeof (struct GNUNET_PeerIdentity))) |
3157 | { | 3157 | { |
@@ -3160,7 +3160,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity | |||
3160 | } | 3160 | } |
3161 | if (ntohl (sdm->purpose.size) != | 3161 | if (ntohl (sdm->purpose.size) != |
3162 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 3162 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
3163 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded) + | 3163 | sizeof (struct GNUNET_CRYPTO_EccPublicKey) + |
3164 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) | 3164 | sizeof (struct GNUNET_TIME_AbsoluteNBO)) |
3165 | { | 3165 | { |
3166 | GNUNET_break_op (0); | 3166 | GNUNET_break_op (0); |