X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_internal.h;h=098054804d5fc71d000d9155af996b02606cb7f5;hb=cdedc07c65bab8467f6f5b1ef4b38982c2c77571;hp=195f5cdf0ec2c47249903c4d9fb03ff96a59d10d;hpb=2878ba34b8d864f89cfb785448e95cdd42297ee0;p=silc.git diff --git a/lib/silcclient/client_internal.h b/lib/silcclient/client_internal.h index 195f5cdf..09805480 100644 --- a/lib/silcclient/client_internal.h +++ b/lib/silcclient/client_internal.h @@ -155,6 +155,9 @@ typedef void (*SilcClientResumeSessionCallback)(SilcClient client, bool success, void *context); +/* Rekey must be performed at the lastest when this many packets is sent */ +#define SILC_CLIENT_REKEY_THRESHOLD 0xfffffe00 + /* Macros */ /* Registers generic task for file descriptor for reading from network and @@ -218,7 +221,7 @@ void silc_client_packet_send(SilcClient client, unsigned char *data, SilcUInt32 data_len, bool force_send); -int silc_client_packet_send_real(SilcClient client, +bool silc_client_packet_send_real(SilcClient client, SilcSocketConnection sock, bool force_send); void silc_client_ftp_free_sessions(SilcClient client, @@ -286,5 +289,6 @@ void silc_client_resume_session(SilcClient client, SilcBuffer silc_client_attributes_process(SilcClient client, SilcSocketConnection sock, SilcDList attrs); +SILC_TASK_CALLBACK_GLOBAL(silc_client_rekey_callback); #endif