/* Executes a command */
-bool silc_client_command_call(SilcClient client,
+SilcBool silc_client_command_call(SilcClient client,
SilcClientConnection conn,
const char *command_line, ...)
{
SilcBuffer buffer, attrs = NULL;
unsigned char count[4], *tmp = NULL;
int i;
- bool details = FALSE, nick = FALSE;
+ SilcBool details = FALSE, nick = FALSE;
unsigned char *pubkey = NULL;
if (!cmd->conn) {
} else if (!strcasecmp(cmd->argv[i], "-auth")) {
SilcPublicKey pubkey = cmd->client->public_key;
SilcPrivateKey privkey = cmd->client->private_key;
- unsigned char *pk, pkhash[20], *pubdata;
+ unsigned char *pk, pkhash[SILC_HASH_MAXLEN], *pubdata;
SilcUInt32 pk_len;
if (cmd->argc >= i + 3) {
case 'C':
if (add) {
int k;
- bool chadd = FALSE;
+ SilcBool chadd = FALSE;
SilcPublicKey chpk = NULL;
mode |= SILC_CHANNEL_MODE_CHANNEL_AUTH;
SilcBuffer buffer, idp = NULL, args = NULL;
int type = 0;
const char *pubkey = NULL;
- bool pubkey_add = TRUE;
+ SilcBool pubkey_add = TRUE;
if (!cmd->conn) {
SILC_NOT_CONNECTED(cmd->client, cmd->conn);
command identifier `ident'. Application usually does not need it
and set it to zero value. */
-bool silc_client_command_register(SilcClient client,
+SilcBool silc_client_command_register(SilcClient client,
SilcCommand command,
const char *name,
SilcCommandCb command_function,
`command_function' and command reply function `command_reply_function'.
Returns TRUE if the command was found and unregistered. */
-bool silc_client_command_unregister(SilcClient client,
+SilcBool silc_client_command_unregister(SilcClient client,
SilcCommand command,
SilcCommandCb command_function,
SilcCommandCb command_reply_function,