agent: PKSIGN should return signature in same format for card.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Feb 2019 01:37:26 +0000 (10:37 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Feb 2019 01:37:26 +0000 (10:37 +0900)
commit0173b249cfb7f02f94911ec759630d81f312e0bd
tree7dd8533ed700a516e90f6cf13814c28651892846
parentc2235d994dbb1d7ddba20f89a7c02f4a27b0610c
agent: PKSIGN should return signature in same format for card.

* agent/pksign.c (agent_pksign_do):

--

It's best to keep same data format by libgcrypt.

For card (due to historical reasons), gpg-agent or scdaemon used to
prefix 0x00 when it starts 0x80, so that it can be parsed signed MPI
as well as unsigned MPI.  It used to do nothing for preceding zeros.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/pksign.c