5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 1997 - 2000 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
24 /* Client entry context. When client receives information about new client
25 (it receives its ID, for example, by IDENTIFY request) we create new
26 client entry. This entry also includes the private message keys if
28 typedef struct SilcClientEntryStruct {
32 /* Keys, these are defined if private message key has been defined
33 with the remote client. */
35 SilcCipher receive_key;
36 } SilcClientEntryObject;
38 typedef SilcClientEntryObject *SilcClientEntry;
40 /* Channel entry context. This is allocate for every channel client has
41 joined to. This includes for example the channel specific keys */
42 /* XXX channel_key is the server generated key. Later this context must
43 include the channel private key. */
44 typedef struct SilcChannelEntryStruct {
50 SilcCipher channel_key;
53 unsigned char iv[SILC_CIPHER_MAX_IV_SIZE];
54 } SilcChannelEntryObject;
56 typedef SilcChannelEntryObject *SilcChannelEntry;