if (sock->outbuf->data - sock->outbuf->head)
silc_buffer_push(sock->outbuf, sock->outbuf->data - sock->outbuf->head);
- ret = silc_server_packet_send_real(server, sock, TRUE);
+ /* Send the packet */
+ ret = silc_packet_send(sock, TRUE);
/* If returned -2 could not write to connection now, will do
it later. */
# If the cipher is builtin the <module path> maybe omitted.
#
[cipher]
-aes-256-cbc:/usr/local/silc/silc/modules/aes.sim.so:32:16
+aes-256-cbc:/usr/local/silc/modules/aes.sim.so:32:16
aes-192-cbc:/usr/local/silc/modules/aes.sim.so:24:16
aes-128-cbc:/usr/local/silc/modules/aes.sim.so:16:16
twofish-256-cbc:/usr/local/silc/modules/twofish.sim.so:32:16
int silc_client_packet_send_real(SilcClient client,
SilcSocketConnection sock,
- int force_send)
+ bool force_send,
+ bool flush)
{
int ret;
/* If rekey protocol is active we must assure that all packets are
sent through packet queue. */
- if (SILC_CLIENT_IS_REKEY(sock))
+ if (flush == FALSE && SILC_CLIENT_IS_REKEY(sock))
force_send = FALSE;
/* Send the packet */
silc_buffer_push(sock->outbuf,
sock->outbuf->data - sock->outbuf->head);
- ret = silc_client_packet_send_real(client, sock, TRUE);
+ ret = silc_client_packet_send_real(client, sock, TRUE, TRUE);
/* If returned -2 could not write to connection now, will do
it later. */
sock->outbuf->data, sock->outbuf->len);
/* Now actually send the packet */
- silc_client_packet_send_real(client, sock, force_send);
+ silc_client_packet_send_real(client, sock, force_send, FALSE);
}
/* Closes connection to remote end. Free's all allocated data except