X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_internal.h;h=0f4e14b43c4c35ff945f093ceea53413eb749732;hp=2e7024f9fa87690ac91617ca08ac7beb4c438174;hb=382d15d447b7a95390decfa783836ae4fe255b3d;hpb=9b47b4cbecca281ab183fa2cf4c590848c0ce9cc diff --git a/apps/silcd/server_internal.h b/apps/silcd/server_internal.h index 2e7024f9..0f4e14b4 100644 --- a/apps/silcd/server_internal.h +++ b/apps/silcd/server_internal.h @@ -120,10 +120,6 @@ struct SilcServerStruct { SilcHash md5hash; SilcHash sha1hash; - /* HMAC objects for MAC's. */ - SilcHmac md5hmac; - SilcHmac sha1hmac; - /* Configuration object */ SilcServerConfig config; SilcServerConfigRef config_ref; @@ -156,6 +152,9 @@ typedef struct { SilcUInt32 failure; } *SilcServerFailureContext; +/* Rekey must be performed at the lastest when this many packets is sent */ +#define SILC_SERVER_REKEY_THRESHOLD 0xfffffe00 + /* Macros */ /* Return pointer to the primary router connection */ @@ -232,6 +231,8 @@ do { \ /* Prototypes */ SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_final); +SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_callback); +SILC_TASK_CALLBACK_GLOBAL(silc_server_connect_to_router); void silc_server_watcher_list_destroy(void *key, void *context, void *user_context);