1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00
gnupg/agent
Werner Koch 3ead21da80
common: Add dedicated private key functions to name-value.c.
* common/name-value.c (struct name_value_container): Add field
'private_key_mode'.
(my_error): New.  Use instead of gpg_error.
(nvc_new_private_key): New.
(nve_release): Add arg 'private_key_mode'.
(nvc_release): Call nve_release with private_key_mode flag.
(nvc_delete): Ditto.
(_nvc_add): Do no special case "Key:" in non-private_key_mode.
(nvc_get_private_key): Return error in non-private_key_mode.
(nvc_set_private_key): Ditto.
(nvc_parse):  Factor all code out to ...
(do_nvc_parse): new.  Add arg 'for_private_key'.
(nvc_parse_private_key): New.
* agent/findkey.c (write_extended_private_key): Replace nvc_parse by
nvc_parse_private_key.
(read_key_file): Ditto.

* common/t-name-value.c (private_key_mode): New variable.
(my_nvc_new): New.  Replace all callers.
(test_key_extraction): Take mode in account.
(run_tests): Ditto.
(run_modification_tests): Ditto.
(parse): Ditto.
(main): Add option --parse and rename --parse to --parse-key.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-06-23 13:17:25 +02:00
..
agent.h Replace use of opt.homedir by accessor functions. 2016-06-07 10:59:46 +02:00
cache.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
call-pinentry.c agent: New option --pinentry-timeout 2016-01-20 11:22:44 +01:00
call-scd.c common: New put_membuf_cb to replace static membuf_data_cb. 2016-01-08 06:33:27 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c Replace use of opt.homedir by accessor functions. 2016-06-07 10:59:46 +02:00
command.c g10: Add openpgp_protected flag to agent secret key export functions 2016-06-11 11:14:00 +02:00
cvt-openpgp.c agent: Implement new protection mode openpgp-s2k3-ocb-aes. 2016-04-12 14:38:44 +02:00
cvt-openpgp.h agent: IMPORT_KEY with --force option fix. 2015-12-24 14:19:53 +09:00
divert-scd.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
findkey.c common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
genkey.c agent: Implement new protection mode openpgp-s2k3-ocb-aes. 2016-04-12 14:38:44 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c Explicitly restrict socket permissions. 2016-06-08 16:18:02 +02:00
keyformat.txt common: Add support for the new extended private key format. 2016-04-21 14:38:53 +02:00
learncard.c agent: Add --force option for LEARN. 2015-04-03 17:33:11 +09:00
Makefile.am agent: Allow gpg-protect-tool to handle openpgp-native protection. 2016-04-14 12:29:29 +02:00
pkdecrypt.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
pksign.c agent: Fix RSA verification for card. 2016-01-05 10:15:49 +09:00
preset-passphrase.c common: New function gnupg_socketdir. 2016-06-07 13:48:46 +02:00
protect-tool.c common: Remove homedir arg from start_new_{dirmngr,gpg_agent}. 2016-06-07 13:09:00 +02:00
protect.c agent: Fix regression due to recent commit 4159567. 2016-04-14 12:29:36 +02:00
t-protect.c agent: Implement new protection mode openpgp-s2k3-ocb-aes. 2016-04-12 14:38:44 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c Replace use of opt.homedir by accessor functions. 2016-06-07 10:59:46 +02:00
w32main.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00