aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_crypto_lib.h2
-rw-r--r--src/transport/gnunet-communicator-tcp.c16
-rw-r--r--src/transport/gnunet-service-tng.c20
3 files changed, 19 insertions, 19 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index c2176f3f2..72d783148 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -307,7 +307,7 @@ struct GNUNET_CRYPTO_SymmetricSessionKey
307/** 307/**
308 * Type of a nonce used for challenges. 308 * Type of a nonce used for challenges.
309 */ 309 */
310struct ChallengeNonceP 310struct GNUNET_CRYPTO_ChallengeNonceP
311{ 311{
312 /** 312 /**
313 * The value of the nonce. Note that this is NOT a hash. 313 * The value of the nonce. Note that this is NOT a hash.
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 */
1449static void 1449static void
1450send_challenge (struct ChallengeNonceP challenge, struct Queue *queue) 1450send_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");
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 56a854a70..778679ed4 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -570,7 +570,7 @@ struct DvInitPS
570 /** 570 /**
571 * Challenge value used by the initiator to re-identify the path. 571 * Challenge value used by the initiator to re-identify the path.
572 */ 572 */
573 struct ChallengeNonceP challenge; 573 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
574}; 574};
575 575
576 576
@@ -610,7 +610,7 @@ struct DvHopPS
610 /** 610 /**
611 * Challenge value used by the initiator to re-identify the path. 611 * Challenge value used by the initiator to re-identify the path.
612 */ 612 */
613 struct ChallengeNonceP challenge; 613 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
614}; 614};
615 615
616 616
@@ -704,7 +704,7 @@ struct TransportDVLearnMessage
704 /** 704 /**
705 * Challenge value used by the initiator to re-identify the path. 705 * Challenge value used by the initiator to re-identify the path.
706 */ 706 */
707 struct ChallengeNonceP challenge; 707 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
708 708
709 /* Followed by @e num_hops `struct DVPathEntryP` values, 709 /* Followed by @e num_hops `struct DVPathEntryP` values,
710 excluding the initiator of the DV trace; the last entry is the 710 excluding the initiator of the DV trace; the last entry is the
@@ -813,7 +813,7 @@ struct TransportValidationChallengeMessage
813 /** 813 /**
814 * Challenge to be signed by the receiving peer. 814 * Challenge to be signed by the receiving peer.
815 */ 815 */
816 struct ChallengeNonceP challenge; 816 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
817 817
818 /** 818 /**
819 * Timestamp of the sender, to be copied into the reply to allow 819 * Timestamp of the sender, to be copied into the reply to allow
@@ -843,7 +843,7 @@ struct TransportValidationPS
843 /** 843 /**
844 * Challenge signed by the receiving peer. 844 * Challenge signed by the receiving peer.
845 */ 845 */
846 struct ChallengeNonceP challenge; 846 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
847}; 847};
848 848
849 849
@@ -872,7 +872,7 @@ struct TransportValidationResponseMessage
872 /** 872 /**
873 * The challenge that was signed by the receiving peer. 873 * The challenge that was signed by the receiving peer.
874 */ 874 */
875 struct ChallengeNonceP challenge; 875 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
876 876
877 /** 877 /**
878 * Original timestamp of the sender (was @code{sender_time}), 878 * Original timestamp of the sender (was @code{sender_time}),
@@ -1035,7 +1035,7 @@ struct LearnLaunchEntry
1035 /** 1035 /**
1036 * Challenge that uniquely identifies this activity. 1036 * Challenge that uniquely identifies this activity.
1037 */ 1037 */
1038 struct ChallengeNonceP challenge; 1038 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
1039 1039
1040 /** 1040 /**
1041 * When did we transmit the DV learn message (used to calculate RTT) and 1041 * When did we transmit the DV learn message (used to calculate RTT) and
@@ -2537,7 +2537,7 @@ struct ValidationState
2537 * (We must not rotate more often as otherwise we may discard valid answers 2537 * (We must not rotate more often as otherwise we may discard valid answers
2538 * due to packet losses, latency and reorderings on the network). 2538 * due to packet losses, latency and reorderings on the network).
2539 */ 2539 */
2540 struct ChallengeNonceP challenge; 2540 struct GNUNET_CRYPTO_ChallengeNonceP challenge;
2541 2541
2542 /** 2542 /**
2543 * Claimed address of the peer. 2543 * Claimed address of the peer.
@@ -6712,7 +6712,7 @@ static int
6712validate_dv_initiator_signature ( 6712validate_dv_initiator_signature (
6713 struct GNUNET_TIME_AbsoluteNBO sender_monotonic_time, 6713 struct GNUNET_TIME_AbsoluteNBO sender_monotonic_time,
6714 const struct GNUNET_PeerIdentity *init, 6714 const struct GNUNET_PeerIdentity *init,
6715 const struct ChallengeNonceP *challenge, 6715 const struct GNUNET_CRYPTO_ChallengeNonceP *challenge,
6716 const struct GNUNET_CRYPTO_EddsaSignature *init_sig) 6716 const struct GNUNET_CRYPTO_EddsaSignature *init_sig)
6717{ 6717{
6718 struct DvInitPS ip = { .purpose.purpose = htonl ( 6718 struct DvInitPS ip = { .purpose.purpose = htonl (
@@ -8172,7 +8172,7 @@ struct CheckKnownChallengeContext
8172 /** 8172 /**
8173 * Set to the challenge we are looking for. 8173 * Set to the challenge we are looking for.
8174 */ 8174 */
8175 const struct ChallengeNonceP *challenge; 8175 const struct GNUNET_CRYPTO_ChallengeNonceP *challenge;
8176 8176
8177 /** 8177 /**
8178 * Set to a matching validation state, if one was found. 8178 * Set to a matching validation state, if one was found.