// Check for CADET state in case the other side has lost the tunnel (xrs,t3ss)
if ((GNUNET_YES == msg->has_monotime) &&
- (GNUNET_YES == GCP_check_monotime(origin, msg->monotime)) &&
+ (GNUNET_YES == GCP_check_and_update_monotime(origin, msg->monotime)) &&
( GNUNET_OK == GCP_check_monotime_sig(origin, msg)) &&
(CADET_TUNNEL_KEY_OK == GCT_get_estate(t)))
{
* FIXME: comment
*/
int
-GCP_check_monotime (struct CadetPeer *peer, struct GNUNET_TIME_AbsoluteNBO monotime)
+GCP_check_and_update_monotime (struct CadetPeer *peer,
+ struct GNUNET_TIME_AbsoluteNBO monotime)
{
struct GNUNET_TIME_Absolute mt = GNUNET_TIME_absolute_ntoh(monotime);
GCP_update_monotime (struct CadetPeer *cp);
int
-GCP_check_monotime (struct CadetPeer *peer,
- struct GNUNET_TIME_AbsoluteNBO monotime);
+GCP_check_and_update_monotime (struct CadetPeer *peer,
+ struct GNUNET_TIME_AbsoluteNBO monotime);
#endif