summaryrefslogtreecommitdiffstats
path: root/agent/genkey.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-05-03 15:54:54 +0200
committerWerner Koch <wk@gnupg.org>2019-05-03 15:54:54 +0200
commitbdf252e76ada0056bec2ee7940255f32552328c5 (patch)
treecb239466bff0ed49319cb223058af18b6bb88466 /agent/genkey.c
parentcommon: In private key mode write "Key:" always last in name-value. (diff)
downloadgnupg2-bdf252e76ada0056bec2ee7940255f32552328c5.tar.xz
gnupg2-bdf252e76ada0056bec2ee7940255f32552328c5.zip
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>
Diffstat (limited to 'agent/genkey.c')
-rw-r--r--agent/genkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/genkey.c b/agent/genkey.c
index d5c80d0aa..84342f9ea 100644
--- a/agent/genkey.c
+++ b/agent/genkey.c
@@ -68,7 +68,7 @@ store_key (gcry_sexp_t private, const char *passphrase, int force,
buf = p;
}
- rc = agent_write_private_key (grip, buf, len, force);
+ rc = agent_write_private_key (grip, buf, len, force, NULL, NULL);
xfree (buf);
return rc;
}