1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
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
..
2018-10-24 15:56:18 -04:00
2017-04-28 10:06:33 +09:00
2018-10-25 16:53:05 -04:00
2015-10-28 10:20:17 +01:00
2018-05-29 13:01:12 +02:00
2018-05-29 13:01:12 +02:00
2019-12-23 12:40:43 +01:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2019-04-16 13:24:10 +09:00
2017-02-21 13:11:46 -05:00
2018-10-25 16:53:05 -04:00
2018-10-25 16:53:05 -04:00
2019-04-16 13:24:10 +09:00
2019-07-12 12:11:26 +09:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2018-10-25 16:53:05 -04:00
2018-10-24 15:56:18 -04:00
2019-10-01 10:32:31 +02:00
2018-10-24 15:56:18 -04:00
2017-01-05 20:43:40 +01:00
2019-03-07 14:11:46 +01:00
2018-02-22 15:32:36 +01:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.