aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpgcompose.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-07 09:08:26 +0000
committerWerner Koch <[email protected]>2019-05-07 09:09:09 +0000
commit5388537806411c19ea84db8c4419f410be9ac616 (patch)
tree51115c552dcc0c56ae9426b17169516ba1013cd0 /g10/gpgcompose.c
parentcommon: New functions nvc_delete_named and nvc_get_string. (diff)
downloadgnupg-5388537806411c19ea84db8c4419f410be9ac616.tar.gz
gnupg-5388537806411c19ea84db8c4419f410be9ac616.zip
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 <[email protected]>
Diffstat (limited to 'g10/gpgcompose.c')
0 files changed, 0 insertions, 0 deletions