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 /* SILC client protocol types */
25 #define SILC_PROTOCOL_CLIENT_NONE 0
26 #define SILC_PROTOCOL_CLIENT_CONNECTION_AUTH 1
27 #define SILC_PROTOCOL_CLIENT_KEY_EXCHANGE 2
28 /* #define SILC_PROTOCOL_CLIENT_MAX 255 */
30 /* Internal context for key exchange protocol */
33 SilcSocketConnection sock;
37 /* Destinations ID taken from authenticataed packet so that we can
38 get the destinations ID. */
40 SilcIdType dest_id_type;
44 } SilcClientKEInternalContext;
46 /* Internal context for connection authentication protocol */
49 SilcSocketConnection sock;
51 /* SKE object from Key Exchange protocol. */
54 /* Auth method that must be used. This is resolved before this
55 connection authentication protocol is started. */
56 unsigned int auth_meth;
58 /* Destinations ID from KE protocol context */
60 SilcIdType dest_id_type;
62 /* Authentication data if we alreay know it. This is filled before
63 starting the protocol if we know the authentication data. Otherwise
64 these are and remain NULL. */
65 unsigned char *auth_data;
66 unsigned int auth_data_len;
68 SilcTask timeout_task;
69 } SilcClientConnAuthInternalContext;
72 void silc_client_protocols_register(void);
73 void silc_client_protocols_unregister(void);