Skip to content

Commit c285d5f

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. This fixes signing with Sequoia Chameleon.
1 parent 122a544 commit c285d5f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

splitgpg2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ async def command_OPTION(self, untrusted_args: Optional[bytes]) -> None:
683683
# gpg-agent will reject this option on a restricted connection
684684
self.fake_respond(b'OK')
685685
return
686+
if untrusted_args == b'pinentry-mode=ask':
687+
# This is the default and a no-op
688+
self.fake_respond(b'OK')
689+
return
686690
untrusted_name, untrusted_value = extract_args(untrusted_args, b'=')
687691
try:
688692
action, opts = self.options[untrusted_name]

0 commit comments

Comments
 (0)