X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.h;fp=lib%2Fsilcclient%2Fclient.h;h=dd4eb8a943170ad8dce9b42b55262f9bf4b2ab43;hb=5e0534a2c468177c5c2b0c503f529380e8dd3df4;hp=1a6da14ebbdd0547ccb7e7ad5364aa1665a663e9;hpb=0f95f4926c8579fe3cc36c9e68f36b67170a0c8e;p=silc.git diff --git a/lib/silcclient/client.h b/lib/silcclient/client.h index 1a6da14e..dd4eb8a9 100644 --- a/lib/silcclient/client.h +++ b/lib/silcclient/client.h @@ -31,7 +31,6 @@ typedef struct SilcClientEntryStruct *SilcClientEntry; typedef struct SilcChannelEntryStruct *SilcChannelEntry; typedef struct SilcServerEntryStruct *SilcServerEntry; -typedef struct SilcClientAwayStruct SilcClientAway; typedef struct SilcClientKeyAgreementStruct *SilcClientKeyAgreement; typedef struct SilcClientFtpSessionStruct *SilcClientFtpSession; typedef struct SilcClientCommandReplyContextStruct @@ -45,6 +44,7 @@ typedef struct SilcChannelPrivateKeyStruct *SilcChannelPrivateKey; /* Internal client entry context */ typedef struct SilcClientEntryInternalStruct { + SilcRwLock lock; /* Read/write lock */ SilcCipher send_key; /* Private message key for sending */ SilcCipher receive_key; /* Private message key for receiving */ SilcHmac hmac_send; /* Private mesage key HMAC for sending */ @@ -65,6 +65,8 @@ typedef struct SilcClientEntryInternalStruct { /* Internal channel entry context */ typedef struct SilcChannelEntryInternalStruct { + SilcRwLock lock; /* Read/write lock */ + /* SilcChannelEntry status information */ SilcDList old_channel_keys; SilcDList old_hmacs; @@ -90,6 +92,7 @@ typedef struct SilcChannelEntryInternalStruct { /* Internal server entry context */ typedef struct SilcServerEntryInternalStruct { + SilcRwLock lock; /* Read/write lock */ SilcUInt16 resolve_cmd_ident; /* Resolving identifier */ SilcAtomic8 refcnt; /* Reference counter */ } SilcServerEntryInternal;