HomePhabricator

pki_crypto: Use temporary pointer when using i2d_*

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Oct 3 2019, 6:49 PM.

Description

pki_crypto: Use temporary pointer when using i2d_*

These functions modify the provided pointer by advancing to the end of
if (point to the byte after the last written). This makes the pointer
invalid, making necessary to use a temporary variable.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>