Debian Bug report logs -
#444685
irssi-plugin-silc: Can not /load silc for the first time: key generation fails
Reported by: Juraj Bednar <jooray@gmail.com>
Date: Sun, 30 Sep 2007 11:03:07 UTC
Severity: normal
Found in version silc-client/1.1.2-2
Fixed in version 1.1.3-1
Done: Jérémy Bobbio <lunar@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>:
Bug#444685; Package irssi-plugin-silc.
(full text, mbox, link).
Acknowledgement sent to Juraj Bednar <jooray@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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@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
Information forwarded to debian-bugs-dist@lists.debian.org, Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>:
Bug#444685; Package irssi-plugin-silc.
(full text, mbox, link).
Acknowledgement sent to Juraj Bednar <jooray@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 444685@bugs.debian.org (full text, mbox, reply):
The problem is probably within lib/silcapputil/silcapputil.c in function
silc_create_pk_identifier which returns NULL, because
silc_pkcs_silc_encode_identifier returns null, when username is shorter
than three characters (two-character usernames are quite common in our
environment).
the good behaviour would be to allow user to specify identifier.
Also, when nothing else, at least write WHY exactly did this fail, so
one does not have to look through source code and use debugger to find
out the exact cause of the problem.
So my proposed fix:
Either remove the bogus limitation of username length (I don't
understand what exactly is wrong with one or two character usernames) or
allow user to specify their identifier when this check fails.
Information forwarded to debian-bugs-dist@lists.debian.org, Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>:
Bug#444685; Package irssi-plugin-silc.
(full text, mbox, link).
Acknowledgement sent to Juraj Bednar <juraj@bednar.sk>:
Extra info received and forwarded to list. Copy sent to Debian SILC Team <pkg-silc-devel@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 444685@bugs.debian.org (full text, mbox, reply):
This bug was fixed upstream and does not occur in current version in the
repository (lenny).
Can be safely closed.
Juraj.
Reply sent to Jérémy Bobbio <lunar@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Juraj Bednar <jooray@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #20 received at 444685-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 1.1.3-1
On Mon, Dec 24, 2007 at 01:25:12AM +0100, Juraj Bednar wrote:
> This bug was fixed upstream and does not occur in current version in the
> repository (lenny).
>
> Can be safely closed.
Done. :)
Cheers,
--
Jérémy Bobbio .''`.
lunar@debian.org : :Ⓐ : # apt-get install anarchism
`. `'`
`-
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 04 Apr 2008 07:32:51 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 05:18:55 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.