diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h index bec0606a0..5782b8bff 100644 --- a/src/cadet/gnunet-service-cadet_peer.h +++ b/src/cadet/gnunet-service-cadet_peer.h | |||
@@ -402,5 +402,26 @@ 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 | */ | ||
412 | int | ||
413 | GCP_check_monotime_sig (struct CadetPeer *peer, const struct | ||
414 | GNUNET_CADET_ConnectionCreateMessage *msg); | ||
415 | |||
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 | ||
424 | GCP_check_and_update_monotime (struct CadetPeer *peer, | ||
425 | struct GNUNET_TIME_AbsoluteNBO monotime); | ||
405 | 426 | ||
406 | #endif | 427 | #endif |