docs for gcry_mpi_aprint should indicate how to release buffer
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Nov 13 08:58:41 CET 2009
more gcrypt documentation nit-picking:
the docs for gcrypt_mpi_aprint() say:
> Convert the MPI a into an external representation described by format
> (see above) and store it in a newly allocated buffer which address will
> be stored in the variable buffer points to. The number of bytes stored
> in this buffer will be stored in the variable nbytes points to, unless
> nbytes is NULL.
I'd assume that buffer must later be released by the caller with
gcry_free(), but the docs don't say so explicitly. perhaps they should?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 891 bytes
Desc: OpenPGP digital signature
More information about the Gcrypt-devel