5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 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 void silc_say(SilcClient client, SilcClientConnection conn, char *msg, ...);
25 void silc_op_say(SilcClient client, SilcClientConnection conn,
26 SilcClientMessageType type, char *msg, ...);
27 void silc_channel_message(SilcClient client, SilcClientConnection conn,
28 SilcClientEntry sender,
29 SilcChannelEntry channel,
30 SilcMessageFlags flags, char *msg);
31 void silc_private_message(SilcClient client, SilcClientConnection conn,
32 SilcClientEntry sender,
33 SilcMessageFlags flags, char *msg);
34 void silc_notify(SilcClient client, SilcClientConnection conn,
35 SilcNotifyType type, ...);
36 void silc_command(SilcClient client, SilcClientConnection conn,
37 SilcClientCommandContext cmd_context, int success,
39 void silc_command_reply(SilcClient client, SilcClientConnection conn,
40 SilcCommandPayload cmd_payload, int success,
41 SilcCommand command, SilcCommandStatus status, ...);
42 void silc_connect(SilcClient client, SilcClientConnection conn, int success);
43 void silc_disconnect(SilcClient client, SilcClientConnection conn);
44 void silc_ask_passphrase(SilcClient client, SilcClientConnection conn,
45 SilcAskPassphrase completion, void *context);
46 void silc_verify_public_key(SilcClient client, SilcClientConnection conn,
47 SilcSocketType conn_type, unsigned char *pk,
48 SilcUInt32 pk_len, SilcSKEPKType pk_type,
49 SilcVerifyPublicKey completion, void *context);
50 int silc_get_auth_method(SilcClient client, SilcClientConnection conn,
51 char *hostname, SilcUInt16 port,
52 SilcProtocolAuthMeth *auth_meth,
53 unsigned char **auth_data,
54 SilcUInt32 *auth_data_len);
55 void silc_failure(SilcClient client, SilcClientConnection conn,
56 SilcProtocol protocol, void *failure);
57 int silc_key_agreement(SilcClient client, SilcClientConnection conn,
58 SilcClientEntry client_entry, char *hostname,
60 SilcKeyAgreementCallback *completion,