[Pkg-silc-devel] Bug#444685: irssi-plugin-silc: Can not /load silc for the first time: key generation fails
Juraj Bednar
jooray at gmail.com
Sun Sep 30 11:00:21 UTC 2007
Package: irssi-plugin-silc
Version: 1.1.2-2
Severity: normal
When I do /load silc for the first time, I get this:
Running SILC for the first time
Could not create public key identifier: Success
Press <Enter> to continue...
Your private key doesn't exist
Could not create public key identifier: Success
Press <Enter> to continue...
Wrong permissions in your private key file `/home/tq/.irssi/private_key.prv'!
Trying to change them ... Failed to change permissions for private key file!
The same problem is with silc-client itself.
The problem is probably within lib/silcapputil/silcapputil.c in function
silc_create_pk_identifier which for some reason returns NULL.
It is called within the same file in this code:
if (!identifier) {
char *def = silc_create_pk_identifier();
if (interactive) {
memset(line, 0, sizeof(line));
if (def)
silc_snprintf(line, sizeof(line), "Identifier [%s]: ", def);
else
silc_snprintf(line, sizeof(line),
"Identifier (eg. UN=jon, HN=jon.dummy.com, "
"RN=Jon Johnson, E=jon at dummy.com): ");
while (!identifier) {
identifier = silc_get_input(line, FALSE);
if (!identifier && def)
identifier = strdup(def);
}
} else {
if (!def) {
fprintf(stderr, "Could not create public key identifier: %s\n",
strerror(errno));
return FALSE;
}
identifier = strdup(def);
}
The parameter "interactive" is always false (it is called with false
as argument), so when that function returns NULL, there's no way to
create public key identifier, thus irssi-silc-plugin and silc-client
are unuseable.
Juraj.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages irssi-plugin-silc depends on:
ii irssi 0.8.10-2 terminal based IRC client
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii perl 5.8.8-7 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.8.8] 5.8.8-7 The Pathologically Eclectic Rubbis
irssi-plugin-silc recommends no packages.
-- no debconf information
More information about the Pkg-silc-devel
mailing list