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.
Description
Revisions and Commits
rG GnuPG | |||
rG3af8731bbbb1 gpgconf: Add list flag to trusted-key et al. | |||
rGf197fe34f22b gpgconf: Add list flag to trusted-key et al. |
Status | Assigned | Task | ||
---|---|---|---|---|
Testing | • TobiasFella | T6874 Kleopatra subkey management improvements | ||
Testing | • TobiasFella | T6879 Kleopatra: Add support for adding an ADSK | ||
Resolved | • werner | T6882 Make ADSK configurable for new keys | ||
Open | • werner | T7313 gpgconf --list-options does not handle multiple trusted-keys. |
Event Timeline
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.
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.