1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-15 00:29:49 +02:00
gnupg/agent
Daniel Kahn Gillmor bf2724880f gpg-agent: add new CACHE_MODE_EXPORT
* agent/agent.h: define CACHE_MODE_EXPORT
* agent/call-pinentry.c (agent_askpin, agent_get_passphrase): use "e/"
as the prefix for SETKEYINFO when in CACHE_MODE_EXPORT.
(agent_clear_passphrase): allow clearing the export cache.
* agent/command.c (cmd_clear_passphrase): add --mode=export.
(cmd_export_key): use CACHE_MODE_EXPORT.
* tests/openpgp/export.scm: no need to feed passphrases during export,
already cached.

----

We don't want secret keys to be able to be exported automatically
based on the same system passphrase cache used by standard decryption
or signing operations.

So we introduce a "export" cache mode which can be used by EXPORT_KEY.

I confess i don't fully understand the changes made to
tests/openpgp/export.scm -- i'm not sure why the passphrase is already
supplied in this case.

Gnupg-Bug-Id: 4522
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-05-20 17:38:12 -04:00
..
agent.h gpg-agent: add new CACHE_MODE_EXPORT 2019-05-20 17:38:12 -04:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
call-pinentry.c gpg-agent: add new CACHE_MODE_EXPORT 2019-05-20 17:38:12 -04:00
call-scd.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
command.c gpg-agent: add new CACHE_MODE_EXPORT 2019-05-20 17:38:12 -04:00
cvt-openpgp.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent,scd: Scan and load all public keys for availability. 2019-05-16 10:09:41 +09:00
findkey.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
genkey.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
keyformat.txt agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
learncard.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
pkdecrypt.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
pksign.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
preset-passphrase.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
protect-tool.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
protect.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
t-protect.c agent: Fix description of shadow format. 2017-12-08 09:19:50 +09:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
w32main.c agent: Resolve conflict of util.h. 2017-03-07 19:22:48 +09:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00