diff options
| author | schwarze <> | 2021-12-17 16:32:07 +0000 |
|---|---|---|
| committer | schwarze <> | 2021-12-17 16:32:07 +0000 |
| commit | 46aaaf46f8d64720d6a5143144b978caf6f8904c (patch) | |
| tree | 74e209415dce575bf9570eb9516d0e5c9bc4e25a /src | |
| parent | 351e3940310265b5b1a2bcd9b9ce615e4f22becf (diff) | |
| download | openbsd-46aaaf46f8d64720d6a5143144b978caf6f8904c.tar.gz openbsd-46aaaf46f8d64720d6a5143144b978caf6f8904c.tar.bz2 openbsd-46aaaf46f8d64720d6a5143144b978caf6f8904c.zip | |
mention lh_strhash(3) in the NAME, SYNOPSIS, and HISTORY sections;
while here, repair a typo in the lh_retrieve(3) synopsis
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/lh_new.3 | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/lh_new.3 b/src/lib/libcrypto/man/lh_new.3 index 1c37347ef6..a9ac283a90 100644 --- a/src/lib/libcrypto/man/lh_new.3 +++ b/src/lib/libcrypto/man/lh_new.3 | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | .\" $OpenBSD: lh_new.3,v 1.7 2020/03/28 22:40:58 schwarze Exp $ | 1 | .\" $OpenBSD: lh_new.3,v 1.8 2021/12/17 16:32:07 schwarze Exp $ |
| 2 | .\" OpenSSL 1bc74519 May 20 08:11:46 2016 -0400 | 2 | .\" full merge up to: |
| 3 | .\" OpenSSL doc/crypto/lhash.pod 1bc74519 May 20 08:11:46 2016 -0400 | ||
| 4 | .\" selective merge up to: | ||
| 5 | .\" OpenSSL doc/man3/OPENSSL_LH_COMPFUNC.pod 24a535ea Sep 22 13:14:20 2020 +0100 | ||
| 3 | .\" | 6 | .\" |
| 4 | .\" -------------------------------------------------------------------------- | 7 | .\" -------------------------------------------------------------------------- |
| 5 | .\" Major patches to this file were contributed by | 8 | .\" Major patches to this file were contributed by |
| @@ -115,7 +118,7 @@ | |||
| 115 | .\" copied and put under another distribution licence | 118 | .\" copied and put under another distribution licence |
| 116 | .\" [including the GNU Public Licence.] | 119 | .\" [including the GNU Public Licence.] |
| 117 | .\" | 120 | .\" |
| 118 | .Dd $Mdocdate: March 28 2020 $ | 121 | .Dd $Mdocdate: December 17 2021 $ |
| 119 | .Dt LH_NEW 3 | 122 | .Dt LH_NEW 3 |
| 120 | .Os | 123 | .Os |
| 121 | .Sh NAME | 124 | .Sh NAME |
| @@ -126,7 +129,12 @@ | |||
| 126 | .Nm lh_retrieve , | 129 | .Nm lh_retrieve , |
| 127 | .Nm lh_doall , | 130 | .Nm lh_doall , |
| 128 | .Nm lh_doall_arg , | 131 | .Nm lh_doall_arg , |
| 129 | .Nm lh_error | 132 | .Nm lh_error , |
| 133 | .Nm LHASH_COMP_FN_TYPE , | ||
| 134 | .Nm LHASH_HASH_FN_TYPE , | ||
| 135 | .Nm LHASH_DOALL_FN_TYPE , | ||
| 136 | .Nm LHASH_DOALL_ARG_FN_TYPE , | ||
| 137 | .Nm lh_strhash | ||
| 130 | .Nd dynamic hash table | 138 | .Nd dynamic hash table |
| 131 | .Sh SYNOPSIS | 139 | .Sh SYNOPSIS |
| 132 | .In openssl/lhash.h | 140 | .In openssl/lhash.h |
| @@ -149,7 +157,7 @@ | |||
| 149 | .Fc | 157 | .Fc |
| 150 | .Ft <type> * | 158 | .Ft <type> * |
| 151 | .Fo lh_<type>_retrieve | 159 | .Fo lh_<type>_retrieve |
| 152 | .Fa "LHASH_OF<type>) *table" | 160 | .Fa "LHASH_OF(<type>) *table" |
| 153 | .Fa "<type> *data" | 161 | .Fa "<type> *data" |
| 154 | .Fc | 162 | .Fc |
| 155 | .Ft void | 163 | .Ft void |
| @@ -186,6 +194,10 @@ | |||
| 186 | .Fa "const void *" | 194 | .Fa "const void *" |
| 187 | .Fa "const void *" | 195 | .Fa "const void *" |
| 188 | .Fc | 196 | .Fc |
| 197 | .Ft unsigned long | ||
| 198 | .Fo lh_strhash | ||
| 199 | .Fa "const char *c" | ||
| 200 | .Fc | ||
| 189 | .Sh DESCRIPTION | 201 | .Sh DESCRIPTION |
| 190 | This library implements type-checked dynamic hash tables. | 202 | This library implements type-checked dynamic hash tables. |
| 191 | The hash table entries can be arbitrary structures. | 203 | The hash table entries can be arbitrary structures. |
| @@ -507,10 +519,7 @@ compares and 10 linked list traverses. | |||
| 507 | This will be much less expensive that 10 calls to your compare function. | 519 | This will be much less expensive that 10 calls to your compare function. |
| 508 | .Pp | 520 | .Pp |
| 509 | .Fn lh_strhash | 521 | .Fn lh_strhash |
| 510 | is a demo string hashing function: | 522 | is a demo string hashing function. |
| 511 | .Pp | ||
| 512 | .Dl unsigned long lh_strhash(const char *c); | ||
| 513 | .Pp | ||
| 514 | Since the LHASH routines would normally be passed structures, this | 523 | Since the LHASH routines would normally be passed structures, this |
| 515 | routine would not normally be passed to | 524 | routine would not normally be passed to |
| 516 | .Fn lh_<type>_new , | 525 | .Fn lh_<type>_new , |
| @@ -525,8 +534,9 @@ rather it would be used in the function passed to | |||
| 525 | .Fn lh_insert , | 534 | .Fn lh_insert , |
| 526 | .Fn lh_delete , | 535 | .Fn lh_delete , |
| 527 | .Fn lh_retrieve , | 536 | .Fn lh_retrieve , |
| 537 | .Fn lh_doall , | ||
| 528 | and | 538 | and |
| 529 | .Fn lh_doall | 539 | .Fn lh_strhash |
| 530 | appeared in SSLeay 0.4 or earlier. | 540 | appeared in SSLeay 0.4 or earlier. |
| 531 | .Fn lh_doall_arg | 541 | .Fn lh_doall_arg |
| 532 | first appeared in SSLeay 0.5.1. | 542 | first appeared in SSLeay 0.5.1. |
