agent: Put Token lines into the key files.
authorWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 13:54:54 +0000 (15:54 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 13:54:54 +0000 (15:54 +0200)
commitbdf252e76ada0056bec2ee7940255f32552328c5
treecb239466bff0ed49319cb223058af18b6bb88466
parentc9fa28bfad297b17e76341ffb40383ce92da5d44
agent: Put Token lines into the key files.

* agent/findkey.c (write_extended_private_key): Add args serialno and
keyref.  Write a Token line if that does not yet exist.
(agent_write_private_key): Add args serialno and keyref and change all
callers.
(agent_write_shadow_key): Skip leading spaces.
* agent/keyformat.txt: Improve extended key format docs.
--

Noet that the extended key forma is the defaqult in 2.3.  This patch
is a first step to better handle tokens which carray the same key.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/agent.h
agent/command-ssh.c
agent/command.c
agent/cvt-openpgp.c
agent/findkey.c
agent/genkey.c
agent/keyformat.txt
agent/protect-tool.c
agent/protect.c