mirror of git://git.gnupg.org/gnupg.git
bf2724880f
* 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> |
||
---|---|---|
.. | ||
extrasamples | ||
fake-pinentries | ||
gpgme | ||
gpgscm | ||
gpgsm | ||
migrations | ||
openpgp | ||
pkits | ||
samplekeys | ||
samplemsgs | ||
567064FE6D14A17B2D811ABB407728BC558AA455 | ||
ChangeLog-2011 | ||
Makefile.am | ||
asschk.c | ||
cert_cci_sphinx_ca.pem | ||
cert_cci_test_wzs.pem | ||
cert_cci_test_zs.pem | ||
cert_cci_user02.pem | ||
cert_cci_user03.pem | ||
cert_cci_user04.pem | ||
cert_cci_user06.pem | ||
cert_cci_user07.pem | ||
cert_testpki_testpca.pem | ||
crl_testpki_testpca.pem | ||
inittests | ||
key_g10code_pete1.pem | ||
key_g10code_theo1.pem | ||
run-tests.scm | ||
runtest | ||
skey_g10code_test1.pem | ||
sm-sign+verify | ||
sm-verify | ||
text-1.dsig.pem | ||
text-1.osig-bad.pem | ||
text-1.osig-badusage.pem | ||
text-1.osig.pem | ||
text-1.txt | ||
text-2.osig-bad.pem | ||
text-2.osig.pem | ||
text-2.txt | ||
text-3.txt |