1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-28 21:50:02 +02:00
gnupg/agent
Werner Koch ce5a7fb72b
scd: Use a scdaemon internal key to protect the PIN cache IPC.
* agent/call-scd.c (handle_pincache_put): Do not decrypt.
(handle_pincache_get): New.
(inq_needpin): Call it.
* scd/command.c (set_key_for_pincache): New.
(pincache_put): Restructure and set key.
(pincache_get): Ditto.
--

This change does away with encrypting and decrypting the cached PIN in
the agent.  There is no need for this we can simply cache the
cryptogram and let scdaemon decrypt after retrieving it from the
agent.  This way we do not need to share a key between gpg-agent and
scdaemon and further the cached content is invalid after the scdaemon
process has been replaced.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-01-09 12:00:50 +01:00
..
agent.h agent: SSH: SCD KEYINFO to list available keys. 2020-01-09 11:55:42 +09: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 scd: Use a scdaemon internal key to protect the PIN cache IPC. 2020-01-09 12:00:50 +01:00
call-pinentry.c agent: Improve --debug-pinentry diagnostics 2019-11-25 11:39:56 +01:00
call-scd.c scd: Use a scdaemon internal key to protect the PIN cache IPC. 2020-01-09 12:00:50 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c agent: SSH: SCD KEYINFO to list available keys. 2020-01-09 11:55:42 +09:00
command.c agent: SSH: SCD KEYINFO to list available keys. 2020-01-09 11:55:42 +09: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: SSH: SCD KEYINFO to list available keys. 2020-01-09 11:55:42 +09:00
findkey.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
genkey.c agent: Remove unused agent_show_message. 2019-05-28 11:29:25 +09:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: First changes to support a PIN cache for scdaemon. 2020-01-07 18:36:18 +01: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: Make an MD encoding function more robust. 2019-05-28 12:27:52 +02: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