Document that lhash isn't thread safe under any circumstances and
authorPauli <paul.dale@oracle.com>
Thu, 28 Sep 2017 00:09:18 +0000 (10:09 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 8 Oct 2017 21:50:18 +0000 (07:50 +1000)
commit2e8b5d75afaff7c9b75917b750f997dc82336fac
treef30b5432cf98015569f3e284993b81c5d72ef976
parent24b0be11b061f36d30ccccdf9d34edf270be4c2f
Document that lhash isn't thread safe under any circumstances and
indicate the level of locking required for various operations.

Remove the lock and atomics from the lhash code.  These we're not complete
or adequate.

Refer to #4418 and #4427 for details.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4429)
crypto/lhash/lh_stats.c
crypto/lhash/lhash.c
crypto/lhash/lhash_lcl.h
doc/man3/OPENSSL_LH_COMPFUNC.pod
doc/man3/OPENSSL_LH_stats.pod