From 3faa2ee4581f1ce58cd05f6818561ac3cd43d104 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 8 Oct 2015 08:21:18 -0700 Subject: [PATCH] pinentry: Add a handler for CLEARPASSPHRASE This call landed in GnuPG's 3a930543 (agent: When the password cache is cleared, also clear the ext. cache, 2015-05-19, v2.1.5) and in the 2.0.x series with dde8ddff (agent: Backport changes from 2.1 to support an external password manager, 2015-05-19, v2.0.28). Our implementation is a no-op, because we don't store passphrases. --- bin/pinentry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pinentry.py b/bin/pinentry.py index d2e57e0..50cf332 100755 --- a/bin/pinentry.py +++ b/bin/pinentry.py @@ -241,6 +241,9 @@ class PinEntry (_server.AssuanServer): self.strings['key info'] = arg yield _common.Response('OK') + def _handle_CLEARPASSPHRASE(self, arg): + yield _common.Response('OK') + def _handle_SETDESC(self, arg): self.strings['description'] = arg yield _common.Response('OK') -- 2.26.2