freebsd-dev/secure
Edward Tomasz Napierala 7d681ad774 crypt_r(3): fix reentrancy problems with DES
This code was originally written for non-reentrant crypt(3).
In 5f521d7ba7, a thread-safe crypt_r(3) was introduced.  However,
it looks like the DES implementation is still not re-entrant;
routines like setup_salt() or des_setkey() still use global
variables.

Instead of something drastic, eg removing DES support altogether,
just mark those variables as thread-local.  This adds about 30kB
of data per thread.

Given that this only applies to DES, I think the impact is minimal.

Reviewed By:	markj
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D30674
2021-06-15 11:06:40 +01:00
..
caroot caroot: reroll the remaining certs 2021-04-13 16:59:34 -05:00
lib crypt_r(3): fix reentrancy problems with DES 2021-06-15 11:06:40 +01:00
libexec
tests
usr.bin pkgbase: Put openssl in its own package 2021-05-13 17:42:29 +02:00
usr.sbin Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile
Makefile.inc