Mailing List Archive

[rob@io.com] Bug#24222: gnupg: --pubkey-algo option has no effect
Hi,

This is a bug report reported via the Debian Bug Tracking System[1],
please reply to 24222@bugs.debian.org and rob@io.com as well as the
list.

[1] http://www.debian.org/Bugs/

--
James
~Yawn And Walk North~ http://yawn.nocrew.org/
------- Start of forwarded message -------
Subject: Bug#24222: gnupg: --pubkey-algo option has no effect
Reply-To: rob@io.com, 24222@bugs.debian.org
Resent-From: rob@io.com
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: James Troup <jjtroup@comp.brad.ac.uk>
Resent-Date: Fri, 03 Jul 1998 21:18:04 GMT
Resent-Message-ID: <handler.24222.B.8995004726279@bugs.debian.org>
Resent-Sender: iwj@debian.org
Message-Id: <m0ysD9b-000I2lC@selene.ddns.org>
Date: Fri, 3 Jul 1998 16:13:59 -0500 (CST)
From: rob@io.com
To: submit@bugs.debian.org

Package: gnupg
Version: 0.3.0-2

It appears that the --pubkey-algo option doesn't do anything; I've
looked through the source and this does indeed seem to be the case, as
the value is retrieved and stored in the "opt" structure but never
referenced anywhere. (I would attempt to fix it myself, but as I am
in the US it would be pointless to do so.)

This causes problems with multi-algorithm keys, since gpg will always
use the first key even if it is inappropriate. Since the default when
creating a new key is to create both a DSA and an ElGamal key -- which
appear in that order -- this makes encryption impossible, since the
DSA key can only be used for signing and there is no way to force the
use of the Elgamal key. The inverse, creating an Elgamal key and then
adding a DSA key, is merely pointless since the DSA key can't be
used.

(The use of --pubkey-algo seems like it probably ought to be
unnecessary anyway -- during encryption, it ought to skip a sign-only
key, and during signing it ought to prefer a DSA key if one is
available given that the documentation says that signing using Elgamal
is deprecated.)


-- System Information
Debian Release: 2.0
Kernel Version: Linux selene 2.0.34 #1 Sun Jun 7 01:56:33 EST 1998 i486 unknown

Versions of the packages gnupg depends on:
hi libc6 2.0.7r-1 The GNU C library version 2 (run-time files)
ii zlib1g 1.1.2-0.1 compression library - runtime
------- End of forwarded message -------
Re: [rob@io.com] Bug#24222: gnupg: --pubkey-algo option has no effect [ In reply to ]
> Package: gnupg
> Version: 0.3.0-2
>
> It appears that the --pubkey-algo option doesn't do anything; I've

You are right.

I might use in the future to resolve conflicts if there are keys with
the same user-id but different public key algorithms. Probably I'll
remove this option as the OpenPGP preference mechanism will be used.
I'm currently working on this.

There are bugs in the key selection mechanism - they should get fixed
along with implementing algorithm prefixes.

I'll disable this option for now.


Werner