(gpg/gcry)_strsource_r()?

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Tue Feb 17 15:44:40 CET 2009


Pat Pannuto wrote:
> Hi all,
> 
> I'm writing an app using libgcrypt, and I noticed that a reentrant /
> thread-safe version of gcry_strerror is provided (gpg_strerror_r), but there
> is no analog for gcry_strsource?  I tried both gcry_strsource_r and
> gpg_strsource_r on the off chance that they would work, but they did not.
> 
>> >From what I've noticed in debugging, the source is rarely very useful, and I
> see no real harm in just leaving it out I suppose, but if such a function
> exists, it would be nice to include it for completeness.

Sorry for the late reply.  *_strsource already is reentrant.  The reason that
*_strerror is not is because it can use the system's strerror function which
may be not.

Thanks,
Marcus




More information about the Gnupg-devel mailing list