Page MenuHome GnuPG

gpg-connect-agent: `HELP` lists `SIGKEY <hexstring_with_keygrip>` but only shows `SETKEY`
Open, WishlistPublic

Description

It's not clear why the output of HELP shows a different synopsis for SETKEY than for SIGKEY, when HELP SETKEY shows the same synopsis for both,

0 dkg@alice:~$ gpg-connect-agent help /bye | grep S..KEY
# SIGKEY <hexstring_with_keygrip>
# SETKEY
# SETKEYDESC plus_percent_escaped_string
0 dkg@alice:~$ gpg-connect-agent 'help SETKEY' /bye
# SIGKEY <hexstring_with_keygrip>
# SETKEY <hexstring_with_keygrip>
# 
# Set the  key used for a sign or decrypt operation.
OK
0 dkg@alice:~$

Details

Version
2.2.4

Event Timeline

werner triaged this task as Wishlist priority.Feb 14 2018, 5:12 PM
werner added a subscriber: werner.
/* Print all commands.  If a help string is available and that
   starts with the command name, print the first line of the
   help string.  */

For SETKEY this is not true. To change this we would need to have an "alias" flag to tell libassuan that setkey is an alias of sigkey. Not sure whether this really makes sense.