gnupg/agent
Werner Koch 5388537806
agent: Allow the use of "Label:" in a key file.
* agent/findkey.c (linefeed_to_percent0A): New.
(read_key_file): Add optional arg 'keymeta' and change all callers.
(agent_key_from_file): Prefer "Label:" over the comment for protected
keys.
--

If in the extended key format an item

  Label: This is my key

is found, "This is my key" will be displayed instead of the comment
intially recorded in the s-expression.  This is pretty useful for the
ssh keys because often there is only the original file name recorded
in the comment.

If no Label is found or it is empty the S-expression comment is used.

To show more than one line, the standard name-value syntax can be
used, for example:

  Label: The Ssh key
  <blank line>
  <space>I registered on fencepost.

Signed-off-by: Werner Koch <wk@gnupg.org>
2019-05-07 11:09:09 +02:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
agent.h agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c agent: New commands PUT_SECRET and GET_SECRET. 2018-07-02 21:36:19 +02:00
call-pinentry.c agent: Terminate pinentry process gracefully, by watching socket. 2019-02-19 14:36:50 +09:00
call-scd.c agent: Fix detection of exit of scdaemon. 2019-03-06 11:00:10 +09:00
command-ssh.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
command.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
cvt-openpgp.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent: Minor change to the KEYTOCARD command. 2019-03-05 12:08:27 +01:00
findkey.c agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
genkey.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Re-introduce --enable-extended-key-format. 2019-03-06 17:58:39 +01:00
keyformat.txt agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
learncard.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
pkdecrypt.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
pksign.c agent: PKSIGN should return signature in same format for card. 2019-02-27 10:37:26 +09:00
preset-passphrase.c Fix usage of ARGPARSE_OPTS. 2017-07-19 13:41:18 +09:00
protect-tool.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
protect.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
t-protect.c agent: Fix description of shadow format. 2017-12-08 09:19:50 +09:00
trans.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
trustlist.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
w32main.c agent: Resolve conflict of util.h. 2017-03-07 19:22:48 +09:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00