client.c
- Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+ Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2000 Pekka Riikonen
+ Copyright (C) 1997 - 2002 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
fflush(stdout);
silc_free(fingerprint);
+ silc_free(babbleprint);
silc_free(pk);
silc_pkcs_public_key_free(public_key);
silc_pkcs_free_identifier(ident);
if (msg.at(0) == '/') {
// Command
- SilcClientCommand *cmd;
+ SilcClientCommand cmd;
SilcClientCommandContext ctx;
char *tmpcmd;
uint32 argc = 0;
// Parse arguments
tmpcmd = parse_command(msg.c_str());
- cmd = silc_client_command_find((const char *)tmpcmd);
+ cmd = silc_client_command_find(silc_client, (const char *)tmpcmd);
silc_free(tmpcmd);
if (cmd == NULL)
break;
ctx->argv_types = argv_types;
// Execute the command
- (*cmd->cb)(ctx, NULL);
+ silc_client_command_call(cmd, ctx);
} else {
// Channel message
if (silc_client_conn->current_channel) {