summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man')
-rw-r--r--src/lib/libcrypto/man/lh_new.315
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/libcrypto/man/lh_new.3 b/src/lib/libcrypto/man/lh_new.3
index c848eed825..d672b4d2d8 100644
--- a/src/lib/libcrypto/man/lh_new.3
+++ b/src/lib/libcrypto/man/lh_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: lh_new.3,v 1.9 2022/03/31 17:27:17 naddy Exp $ 1.\" $OpenBSD: lh_new.3,v 1.10 2024/01/24 14:02:52 jsing Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL doc/crypto/lhash.pod 1bc74519 May 20 08:11:46 2016 -0400 3.\" OpenSSL doc/crypto/lhash.pod 1bc74519 May 20 08:11:46 2016 -0400
4.\" selective merge up to: 4.\" selective merge up to:
@@ -118,7 +118,7 @@
118.\" copied and put under another distribution licence 118.\" copied and put under another distribution licence
119.\" [including the GNU Public Licence.] 119.\" [including the GNU Public Licence.]
120.\" 120.\"
121.Dd $Mdocdate: March 31 2022 $ 121.Dd $Mdocdate: January 24 2024 $
122.Dt LH_NEW 3 122.Dt LH_NEW 3
123.Os 123.Os
124.Sh NAME 124.Sh NAME
@@ -342,15 +342,8 @@ lh_STUFF_doall(hashtable, LHASH_DOALL_FN(STUFF_cleanup));
342lh_STUFF_free(hashtable); 342lh_STUFF_free(hashtable);
343.Ed 343.Ed
344.Pp 344.Pp
345When doing this, be careful if you delete entries from the hash table in 345A callback may delete entries from the hash table, however, it is
346your callbacks: the table may decrease in size, moving the item that you 346not safe to insert new entries.
347are currently on down lower in the hash table \(em this could cause some
348entries to be skipped during the iteration.
349The second best solution to this problem is to set hash->down_load=0
350before you start (which will stop the hash table ever decreasing in
351size).
352The best solution is probably to avoid deleting items from the hash
353table inside a doall callback!
354.Pp 347.Pp
355.Fn lh_<type>_doall_arg 348.Fn lh_<type>_doall_arg
356is the same as 349is the same as