diff options
author | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:48:29 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:48:29 +0200 |
commit | 11dbdc79aeb05e82913ac70cf2ac8d4f45b02c28 (patch) | |
tree | 27626cd1ad6e5e0fd2654657b925a1be8508008d /src/cadet/gnunet-service-cadet_peer.h | |
parent | d22eacb13eb676b5c096b47c72a3fdbdb332d5a5 (diff) | |
download | gnunet-11dbdc79aeb05e82913ac70cf2ac8d4f45b02c28.tar.gz gnunet-11dbdc79aeb05e82913ac70cf2ac8d4f45b02c28.zip |
- forgot to actually add a file and some method documentations.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h index 31bd23121..5782b8bff 100644 --- a/src/cadet/gnunet-service-cadet_peer.h +++ b/src/cadet/gnunet-service-cadet_peer.h | |||
@@ -402,13 +402,25 @@ 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 | /** | ||
406 | * Checking the signature for a monotime of a GNUNET_CADET_ConnectionCreateMessage. | ||
407 | * | ||
408 | * @param peer The peer that signed the monotime value. | ||
409 | * @param msg The GNUNET_CADET_ConnectionCreateMessage with the monotime value. | ||
410 | * @return GNUNET_OK if the signature is good, GNUNET_SYSERR if not. | ||
411 | */ | ||
405 | int | 412 | int |
406 | GCP_check_monotime_sig (struct CadetPeer *peer, const struct GNUNET_CADET_ConnectionCreateMessage *msg); | 413 | GCP_check_monotime_sig (struct CadetPeer *peer, const struct |
407 | 414 | GNUNET_CADET_ConnectionCreateMessage *msg); | |
408 | void | ||
409 | GCP_update_monotime (struct CadetPeer *cp); | ||
410 | 415 | ||
411 | int | 416 | /** |
417 | * Checking if a monotime value is newer than the last monotime value received from a peer. If the time value is newer it will be stored at the peer. | ||
418 | * | ||
419 | * @param peer The peer we received a new time value from. | ||
420 | * @param monotime Time value we check against the last time value we received from a peer. | ||
421 | * @return GNUNET_YES if monotime is newer than the last received time value, GNUNET_NO if monotime is not newer. | ||
422 | */ | ||
423 | int | ||
412 | GCP_check_and_update_monotime (struct CadetPeer *peer, | 424 | GCP_check_and_update_monotime (struct CadetPeer *peer, |
413 | struct GNUNET_TIME_AbsoluteNBO monotime); | 425 | struct GNUNET_TIME_AbsoluteNBO monotime); |
414 | 426 | ||