Error with gcry_mpi_release with opaque value.

Werner Koch wk at gnupg.org
Fri Jun 29 07:17:18 CEST 2018


On Thu, 28 Jun 2018 13:54, stefbon at gmail.com said:

> malloc and free. Maybe initialize? gcry_free does not work without
> first calling gcry_malloc?

Libcrypt needs to be initialized; if you forgot that you should get a
notice in the syslog.  There is some fallback initialization but that
does not work in all cases.

Why don't you use the gcry_mpi_set_opaque_copy function?


Salam-Shalom,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20180629/22d79472/attachment.sig>


More information about the Gcrypt-devel mailing list