agent: Fix for suggested Libgcrypt use.
authorWerner Koch <wk@gnupg.org>
Fri, 22 Feb 2019 13:09:02 +0000 (14:09 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
commita0ffc3a88149034e25a78a029682de73c6cb8aaf
tree27458524ac4fbc48703ddef169d36f1f0e8586d1
parent3d2623fe46bec05f661a88540aa12bb04da8213d
agent: Fix for suggested Libgcrypt use.

* agent/divert-scd.c (divert_pkdecrypt): Skip a flags parameter.
--

The libgcrypt docs say that a "flags" parameter should always be used
in the input of pkdecrypt.  Thus we should allow that parameter also
when parsing an s-expression to figure out the algorithm for use with
scdaemon.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit a12c3a566e2e4b10bc02976a2819070877ee895c)
(cherry picked from commit 0a95b153811f36739d1b20f23920bad0bb07c68b)

Gbp-Pq: Topic from-2.2.14
Gbp-Pq: Name agent-Fix-for-suggested-Libgcrypt-use.patch
agent/divert-scd.c