Page MenuHome GnuPG

gpgconf --list-options does not handle multiple trusted-keys.
Open, LowPublic

Description

In fact it does not handle trusted-key, default-new-key-adsk, and add-desig-revoker properly. Only the last occurance of them is returned by gpgconf --list-options gpg.

Event Timeline

werner renamed this task from gpgconf --list-options does now handle multiple trusted-keys. to gpgconf --list-options does not handle multiple trusted-keys..Oct 1 2024, 10:33 AM

Fixed for master. Let's first test this with kleopatra.

A quick test with gpa showed that the option values are shown but not in a real usable format (11111....1111,"2222....222) instead of for example (11111....1111,2222....222). Updating worked, though. Likely a problem in GPA.

gpgme should handle lists correctly. In Kleopatra those options are not shown in the configuration dialog because they are GC_LEVEL_INVISIBLE, i.e. Kleopatra can read them programmatically but they are not shown to the user.

werner lowered the priority of this task from Normal to Low.Oct 2 2024, 5:15 PM
werner edited projects, added gnupg, Feature Request; removed gnupg24, gnupg22, vsd33, Restricted Project.

Kleopatra just checks if the option "default-new-key-adsk" is set (i.e. it doesn't matter if it's an option with scalar value or list value). The other two options that were changed are not used by Kleopatra.

In general, Kleopatra (in the GnuPG System configuration page) currently only supports lists of options of type GPGME_CONF_NONE (like "verbose") which are represented by their count and lists of options of type GPGME_CONF_LDAP_SERVER which use a custom representation.

The code also supports lists of int/uint options, but I don't think there are options of this type. The code has the comment "Let people type list of numbers (1,2,3....). Untested."

Lists of strings (like gpg's "group" option; I didn't see any other options of this type) are not supported by the generic GnuPG System configuration page in Kleopatra.