SilcClient client = (SilcClient)ctx->client;
/* Send the packet immediately */
- silc_client_packet_send(client, ctx->sock, type, NULL, 0, NULL, NULL,
- packet->data, packet->len, FALSE);
+ silc_client_packet_send_flush(client, ctx->sock, type, NULL, 0, NULL, NULL,
+ packet->data, packet->len);
}
/* Performs re-key as defined in the SILC protocol specification. */
*/
/* Send the REKEY_DONE to indicate we will take new keys into use */
- silc_client_packet_send(client, ctx->sock,
- SILC_PACKET_REKEY_DONE,
- NULL, 0, NULL, NULL, NULL, 0, FALSE);
+ silc_client_packet_send_flush(client, ctx->sock,
+ SILC_PACKET_REKEY_DONE,
+ NULL, 0, NULL, NULL, NULL, 0);
/* The protocol ends in next stage. */
protocol->state = SILC_PROTOCOL_STATE_END;
*/
/* Start the re-key by sending the REKEY packet */
- silc_client_packet_send(client, ctx->sock, SILC_PACKET_REKEY,
- NULL, 0, NULL, NULL, NULL, 0, FALSE);
+ silc_client_packet_send_flush(client, ctx->sock, SILC_PACKET_REKEY,
+ NULL, 0, NULL, NULL, NULL, 0);
if (ctx->pfs == TRUE) {
/*
/* Send the REKEY_DONE to indicate we will take new keys into use
now. */
- silc_client_packet_send(client, ctx->sock,
- SILC_PACKET_REKEY_DONE,
- NULL, 0, NULL, NULL, NULL, 0, FALSE);
+ silc_client_packet_send_flush(client, ctx->sock,
+ SILC_PACKET_REKEY_DONE,
+ NULL, 0, NULL, NULL, NULL, 0);
/* The protocol ends in next stage. */
protocol->state = SILC_PROTOCOL_STATE_END;
/* Send the REKEY_DONE to indicate we will take new keys into use
now. */
- silc_client_packet_send(client, ctx->sock, SILC_PACKET_REKEY_DONE,
- NULL, 0, NULL, NULL, NULL, 0, FALSE);
+ silc_client_packet_send_flush(client, ctx->sock, SILC_PACKET_REKEY_DONE,
+ NULL, 0, NULL, NULL, NULL, 0);
/* The protocol ends in next stage. */
protocol->state = SILC_PROTOCOL_STATE_END;