struct GNUNET_CADET_ConnectionCreateMessage *create_msg;
struct GNUNET_PeerIdentity *pids;
struct GNUNET_MQ_Envelope *env;
-
+ struct CadetTunnel *t;
+
cc->task = NULL;
GNUNET_assert (GNUNET_YES == cc->mqm_ready);
env =
// check for tunnel state and define tunnel_up (xrs,t3ss)
t = GCP_get_tunnel (cc->destination, GNUNET_YES);
- create_msg->tunnel_up = (t->estate == CADET_TUNNEL_KEY_UNINITIALIZED)? GNUNET_NO : GNUNET_YES;
+ create_msg->tunnel_up = GCT_get_estate(t) == CADET_TUNNEL_KEY_UNINITIALIZED ? GNUNET_NO : GNUNET_YES;
pids = (struct GNUNET_PeerIdentity *) &create_msg[1];
pids[0] = my_full_id;
GCP_2s (origin),
GNUNET_sh2s (&msg->cid.connection_of_tunnel));
path = GCPP_get_path_from_route (path_length - 1, pids);
- t = GCP_get_tunnel (orgin, GNUNET_YES);
+ t = GCP_get_tunnel (sender, GNUNET_YES);
// Check for CADET state in case the other side has lost the tunnel (xrs,t3ss)
if ((GNUNET_NO == msg->tunnel_up) &&
- (CADET_TUNNEL_KEY_OK == t->estate))
+ (CADET_TUNNEL_KEY_OK == GCT_get_estate(t)))
{
- t->estate = CADET_TUNNEL_KEY_UNINITIALIZED;
+ GCT_change_estate (t, CADET_TUNNEL_KEY_UNINITIALIZED);
}
if (GNUNET_OK !=