common: In private key mode write "Key:" always last in name-value.
authorWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 12:24:07 +0000 (14:24 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 12:24:07 +0000 (14:24 +0200)
commitc9fa28bfad297b17e76341ffb40383ce92da5d44
treea676da5a4220b7e2aa3f7e2a528461f9cbb2bb0e
parentbd6ecbb8f8e92fe4a7fed40fcf470eb83bda0927
common: In private key mode write "Key:" always last in name-value.

* common/name-value.c (nvc_write): Take care of Key. Factor some code
out to ...
(write_one_entry): new.
--

The key item is in general not manual editable thus we put it at the
end of a file.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/name-value.c