Skip to content

Commit 2202d1d

Browse files
committed
Give fake OK response to OPTIONS pinentry-mode=ask
pinentry-mode=ask is the default, so this is a no-op. Return OK instead of an error code. Sequoia Chameleon sends pinentry-mode=ask and disconnects when it gets an error. Fixes: QubesOS/qubes-issues#9528
1 parent 58efb86 commit 2202d1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

splitgpg2/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,11 @@ async def command_OPTION(self, untrusted_args: Optional[bytes]) -> None:
679679
if not untrusted_args:
680680
raise Filtered
681681

682+
if untrusted_args == b'pinentry-mode=ask':
683+
# This is the default and a no-op
684+
self.fake_respond(b'OK')
685+
return
686+
682687
untrusted_name, untrusted_value = extract_args(untrusted_args, b'=')
683688
try:
684689
action, opts = self.options[untrusted_name]

0 commit comments

Comments
 (0)