gpg: Create all MPIs with RFC-4880 correct length headers.
authorWerner Koch <wk@gnupg.org>
Mon, 16 Mar 2015 19:14:58 +0000 (20:14 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Mar 2015 19:14:58 +0000 (20:14 +0100)
commitab17f7b6c392782718f57eaea94fc18a0ff49389
treeee69e586534149e4d40a2f8dd0148a35069ee342
parentbcc8250bc5b9a357c6d1444f03e334edec573ede
gpg: Create all MPIs with RFC-4880 correct length headers.

* g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.
--

This used not to work with opaque MPI as returned by Libgcrypt from
ECC operations.  This patch fixes this.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/build-packet.c