Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2006 Pekka Riikonen
+ Copyright (C) 1997 - 2007 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
int i=0;
items = g_strsplit(list, ",", -1);
-
+
while (items[i] != NULL)
printformat_module("fe-common/silc", NULL, NULL,
MSGLEVEL_CRAP, SILCTXT_CONFIG_LIST,
void silc_client_list_ciphers()
{
- char *ciphers = silc_cipher_get_supported();
+ char *ciphers = silc_cipher_get_supported(FALSE);
#ifdef SILC_PLUGIN
printformat_module("fe-common/silc", NULL, NULL,
MSGLEVEL_CRAP, SILCTXT_CONFIG_ALGOS,
}
#ifdef SILC_PLUGIN
-extern void irssi_redraw(void); /* dirty, I know */
-
void create_key_passphrase(const char *answer, CREATE_KEY_REC *rec)
{
char priv_key_file[128], pub_key_file[128];
g_free(rec->passphrase);
g_free(rec->pkcs);
g_free(rec);
- irssi_redraw();
-
}
void change_private_key_passphrase(const char *answer, CREATE_KEY_REC *rec)
ENTRY_REDIRECT_FLAG_HIDDEN, rec);
return;
}
-
+
if ((rec->passphrase == NULL) && (answer) && (*answer != '\0')) {
rec->passphrase = g_strdup(answer);
keyboard_entry_redirect((SIGNAL_FUNC) change_private_key_passphrase,
}
if (silc_change_private_key_passphrase(rec->file, rec->old,
- (rec->passphrase == NULL ?
+ (rec->passphrase == NULL ?
"" : rec->passphrase)) == TRUE)
printformat_module("fe-common/silc", NULL, NULL,
MSGLEVEL_CRAP, SILCTXT_CONFIG_PASSCHANGE);