{
GNUNET_break (0);
GCT_debug (t, GNUNET_ERROR_TYPE_ERROR);
- GCP_debug (t->peer, GNUNET_ERROR_TYPE_ERROR);
}
return NULL;
}
*
* @param t Tunnel on which the message came.
* @param message Payload of KX message.
+ *
+ * FIXME: not needed anymore
+ * - substitute with call to kx_ax
+ * - eliminate encapsulation
*/
void
GCT_handle_kx (struct CadetTunnel *t,
}
-/**
- * Sends an already built and encrypted message on a tunnel, choosing the best
- * connection. Useful for re-queueing messages queued on a destroyed connection.
- *
- * @param message Message to send. Function modifies it.
- * @param t Tunnel on which this message is transmitted.
- */
-void
-GCT_resend_message (const struct GNUNET_MessageHeader *message,
- struct CadetTunnel *t)
-{
- struct CadetConnection *c;
- int fwd;
-
- c = tunnel_get_connection (t);
- if (NULL == c)
- {
- /* TODO queue in tunnel, marked as encrypted */
- LOG (GNUNET_ERROR_TYPE_DEBUG, "No connection available, dropping.\n");
- return;
- }
- fwd = GCC_is_origin (c, GNUNET_YES);
- GNUNET_break (NULL == GCC_send_prebuilt_message (message, UINT16_MAX, 0,
- c, fwd,
- GNUNET_YES, NULL, NULL));
-}
-
-
/**
* Is the tunnel directed towards the local peer?
*