5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2001 - 2007 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 #include "silc-servers.h"
26 void silc_say(SilcClient client, SilcClientConnection conn,
27 SilcClientMessageType type, char *msg, ...);
28 void silc_say_error(char *msg, ...);
29 void silc_channel_message(SilcClient client, SilcClientConnection conn,
30 SilcClientEntry sender,
31 SilcChannelEntry channel,
32 SilcMessagePayload payload,
33 SilcChannelPrivateKey key,
34 SilcMessageFlags flags,
35 const unsigned char *message,
36 SilcUInt32 message_len);
37 void silc_private_message(SilcClient client, SilcClientConnection conn,
38 SilcClientEntry sender,
39 SilcMessagePayload payload,
40 SilcMessageFlags flags,
41 const unsigned char *message,
42 SilcUInt32 message_len);
43 void silc_notify(SilcClient client, SilcClientConnection conn,
44 SilcNotifyType type, ...);
45 void silc_command(SilcClient client, SilcClientConnection conn,
46 SilcBool success, SilcCommand command, SilcStatus status,
47 SilcUInt32 argc, unsigned char **argv);
48 void silc_command_reply(SilcClient client, SilcClientConnection conn,
49 SilcCommand command, SilcStatus status,
50 SilcStatus error, va_list ap);
51 void silc_ask_passphrase(SilcClient client, SilcClientConnection conn,
52 SilcAskPassphrase completion, void *context);
53 void silc_verify_public_key(SilcClient client, SilcClientConnection conn,
54 SilcConnectionType conn_type,
55 SilcPublicKey publi_key,
56 SilcVerifyPublicKey completion, void *context);
57 void silc_get_auth_method(SilcClient client, SilcClientConnection conn,
58 char *hostname, SilcUInt16 port,
59 SilcAuthMethod auth_meth,
60 SilcGetAuthMeth completion, void *context);
61 void silc_key_agreement(SilcClient client, SilcClientConnection conn,
62 SilcClientEntry client_entry, const char *hostname,
63 SilcUInt16 protocol, SilcUInt16 port);
64 void silc_ftp(SilcClient client, SilcClientConnection conn,
65 SilcClientEntry client_entry, SilcUInt32 session_id,
66 const char *hostname, SilcUInt16 port);
68 silc_unescape_data(const char *escaped_data, SilcUInt32 *length);
70 silc_escape_data(const char *data, SilcUInt32 len);
73 silc_get_session_filename(SILC_SERVER_REC *server);