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,
if (silc_create_key_pair(rec->pkcs, rec->bits, pub_key_file, priv_key_file,
NULL, (rec->passphrase == NULL ? "" : rec->passphrase),
- NULL, NULL, NULL, FALSE) == TRUE)
+ NULL, NULL, FALSE) == TRUE)
printformat_module("fe-common/silc", NULL, NULL,
MSGLEVEL_CRAP, SILCTXT_CONFIG_CREATE);
else
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);