Home GnuPG
Diffusion GPGME ddbd54ef881b

Fix regression with gpgsm 2.0 due to "OPTION with-secret".
ddbd54ef881bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix regression with gpgsm 2.0 due to "OPTION with-secret".

* src/engine-gpgsm.c (gpgsm_assuan_simple_command): Do not terminate
on a status lines.

This bug has been with us since the support for gpgsm: If there is no
status line handler but a status line is received anyway the command
handling loop terminates and thus the command/answer order gets out of
sync. In the case of the bug report this is triggered by sending an
option which starts the agent and that starting emits a "PROGRESS"
status line.

The solution is not to stop reading after a status line but record a
possible error code and return that only after OK or ERR.

  • GnuPG-bug-id: T1795
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 8 2015, 12:34 PM
Parents
rM7addffc0826e: tests: Add option --secret to run-keylist.
Branches
Unknown
Tags
Unknown

Event Timeline