diff options
author | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:37:10 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:37:10 +0200 |
commit | d22eacb13eb676b5c096b47c72a3fdbdb332d5a5 (patch) | |
tree | 9be948a80a6be2c56080be8826cba747de9dce57 /src/cadet/gnunet-service-cadet_peer.h | |
parent | 59f616a3c5d8a6873de0090d0db1413c8b9c411d (diff) | |
download | gnunet-d22eacb13eb676b5c096b47c72a3fdbdb332d5a5.tar.gz gnunet-d22eacb13eb676b5c096b47c72a3fdbdb332d5a5.zip |
Fixed bug #5822 by adding a monotonic time to the connection create message of a peer that want to start a KX, and the corresponding test #5823. Credits to dvn, lurchi and xrs for helpful discussions and coding.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h index bec0606a0..31bd23121 100644 --- a/src/cadet/gnunet-service-cadet_peer.h +++ b/src/cadet/gnunet-service-cadet_peer.h | |||
@@ -402,5 +402,14 @@ void | |||
402 | GCP_set_mq (struct CadetPeer *cp, | 402 | GCP_set_mq (struct CadetPeer *cp, |
403 | struct GNUNET_MQ_Handle *mq); | 403 | struct GNUNET_MQ_Handle *mq); |
404 | 404 | ||
405 | int | ||
406 | GCP_check_monotime_sig (struct CadetPeer *peer, const struct GNUNET_CADET_ConnectionCreateMessage *msg); | ||
407 | |||
408 | void | ||
409 | GCP_update_monotime (struct CadetPeer *cp); | ||
410 | |||
411 | int | ||
412 | GCP_check_and_update_monotime (struct CadetPeer *peer, | ||
413 | struct GNUNET_TIME_AbsoluteNBO monotime); | ||
405 | 414 | ||
406 | #endif | 415 | #endif |