diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-21 00:11:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-21 00:11:28 +0100 |
commit | 7bc5bb42ae0dc9ef0bf529ceb0d287acfc340ef2 (patch) | |
tree | bda32d7bcf765f0bf63cc59a64a74b444f8a0fca /src/transport/gnunet-communicator-tcp.c | |
parent | 3bda896425e965b8fcf0e23935662754fabf3b27 (diff) | |
download | gnunet-7bc5bb42ae0dc9ef0bf529ceb0d287acfc340ef2.tar.gz gnunet-7bc5bb42ae0dc9ef0bf529ceb0d287acfc340ef2.zip |
fix #7173
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r-- | src/transport/gnunet-communicator-tcp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c index 3bfdeaa90..be75fa0e8 100644 --- a/src/transport/gnunet-communicator-tcp.c +++ b/src/transport/gnunet-communicator-tcp.c | |||
@@ -143,7 +143,7 @@ struct TcpHandshakeSignature | |||
143 | /** | 143 | /** |
144 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. | 144 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. |
145 | */ | 145 | */ |
146 | struct ChallengeNonceP challenge; | 146 | struct GNUNET_CRYPTO_ChallengeNonceP challenge; |
147 | }; | 147 | }; |
148 | 148 | ||
149 | /** | 149 | /** |
@@ -176,7 +176,7 @@ struct TcpHandshakeAckSignature | |||
176 | /** | 176 | /** |
177 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. | 177 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. |
178 | */ | 178 | */ |
179 | struct ChallengeNonceP challenge; | 179 | struct GNUNET_CRYPTO_ChallengeNonceP challenge; |
180 | }; | 180 | }; |
181 | 181 | ||
182 | /** | 182 | /** |
@@ -203,7 +203,7 @@ struct TCPConfirmation | |||
203 | /** | 203 | /** |
204 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. | 204 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. |
205 | */ | 205 | */ |
206 | struct ChallengeNonceP challenge; | 206 | struct GNUNET_CRYPTO_ChallengeNonceP challenge; |
207 | 207 | ||
208 | }; | 208 | }; |
209 | 209 | ||
@@ -238,7 +238,7 @@ struct TCPConfirmationAck | |||
238 | /** | 238 | /** |
239 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. | 239 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. |
240 | */ | 240 | */ |
241 | struct ChallengeNonceP challenge; | 241 | struct GNUNET_CRYPTO_ChallengeNonceP challenge; |
242 | 242 | ||
243 | }; | 243 | }; |
244 | 244 | ||
@@ -587,12 +587,12 @@ struct Queue | |||
587 | /** | 587 | /** |
588 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. | 588 | * Challenge value used to protect against replay attack, if there is no stored monotonic time value. |
589 | */ | 589 | */ |
590 | struct ChallengeNonceP challenge; | 590 | struct GNUNET_CRYPTO_ChallengeNonceP challenge; |
591 | 591 | ||
592 | /** | 592 | /** |
593 | * Challenge value received. In case of inbound connection we have to remember the value, because we send the challenge back later after we received the GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_CONFIRMATION_ACK. | 593 | * Challenge value received. In case of inbound connection we have to remember the value, because we send the challenge back later after we received the GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_CONFIRMATION_ACK. |
594 | */ | 594 | */ |
595 | struct ChallengeNonceP challenge_received; | 595 | struct GNUNET_CRYPTO_ChallengeNonceP challenge_received; |
596 | 596 | ||
597 | /** | 597 | /** |
598 | * Iteration Context for retrieving the monotonic time send with key for rekeying. | 598 | * Iteration Context for retrieving the monotonic time send with key for rekeying. |
@@ -1447,7 +1447,7 @@ handshake_ack_monotime_cb (void *cls, | |||
1447 | * @param queue The queue context. | 1447 | * @param queue The queue context. |
1448 | */ | 1448 | */ |
1449 | static void | 1449 | static void |
1450 | send_challenge (struct ChallengeNonceP challenge, struct Queue *queue) | 1450 | send_challenge (struct GNUNET_CRYPTO_ChallengeNonceP challenge, struct Queue *queue) |
1451 | { | 1451 | { |
1452 | struct TCPConfirmationAck tca; | 1452 | struct TCPConfirmationAck tca; |
1453 | struct TcpHandshakeAckSignature thas; | 1453 | struct TcpHandshakeAckSignature thas; |
@@ -1680,7 +1680,7 @@ try_handle_plaintext (struct Queue *queue) | |||
1680 | uint16_t type; | 1680 | uint16_t type; |
1681 | size_t size = 0; /* make compiler happy */ | 1681 | size_t size = 0; /* make compiler happy */ |
1682 | struct TcpHandshakeAckSignature thas; | 1682 | struct TcpHandshakeAckSignature thas; |
1683 | const struct ChallengeNonceP challenge = queue->challenge; | 1683 | const struct GNUNET_CRYPTO_ChallengeNonceP challenge = queue->challenge; |
1684 | 1684 | ||
1685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1685 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1686 | "try handle plaintext!\n"); | 1686 | "try handle plaintext!\n"); |