gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators.
* g10/call-agent.c (agent_pkdecrypt): accept but do not require NUL-terminated data from the agent. * sm/call-agent.c (gpgsm_agent_pkdecrypt): accept but do not require NUL-terminated data from the agent.
Cherry-pick master commit of:
3ba091ab8c93c87741a451f579d63dd500d7621d
- GnuPG-bug-id: T4652
- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>