pinentry: Add a handler for CLEARPASSPHRASE
authorW. Trevor King <wking@tremily.us>
Thu, 8 Oct 2015 15:21:18 +0000 (08:21 -0700)
committerW. Trevor King <wking@tremily.us>
Thu, 8 Oct 2015 15:21:18 +0000 (08:21 -0700)
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

index d2e57e0170adef28c984a080a150cadf717569dd..50cf3326cdadc1e8f32c97d87c522db1312d111e 100755 (executable)
@@ -241,6 +241,9 @@ class PinEntry (_server.AssuanServer):
         self.strings['key info'] = arg
         yield _common.Response('OK')
 
         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')
     def _handle_SETDESC(self, arg):
         self.strings['description'] = arg
         yield _common.Response('OK')