[Swan] From Linux Fedora 18 crypt man - Issue with threads

Paul Wouters pwouters at redhat.com
Thu Mar 7 18:50:50 EET 2013


On Thu, 7 Mar 2013, Philippe Vouters wrote:

> crypt_r requires -D_GNU_SOURCE. Not sure crypt_r is implemented under OpenBSD 
> and FreeBSD.
> crypt requires -D_XOPEN_SOURCE and thus should be implemented on every 
> Unix/Unix-like. The pthread library is even implemented under Windows/Cygwin. 
> It is implemented on Linux/HP-UX/Tru64 (both HP's Unix). So the pthread 
> library should as well be under OpenBSD/FreeBSD. Hence my proposal keeping 
> the crypt call in xauth.c, protecting the call with a mutex.

Thanks for clarifying that. I will use your method of locking the crypt
call to keep things more portable.

Paul


More information about the Swan mailing list