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
hey folks--
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?
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20091113/222145f6/attachment.pgp>
More information about the Gcrypt-devel
mailing list