OPENSSL_LH_STATS(3ossl)

๐Ÿ“ฆ
version 15.1 ยท 3 versions
, in freebsd 15.1

okay bestie, welcome to OPENSSL_LH_STATS(3ossl) โ€” the OpenSSL manual page for the LHASH stats crew. grab a strawberry ๐Ÿ“ and letโ€™s go.

๐ŸŒธ NAME ๐ŸŒธ

OPENSSL_LH_stats, OPENSSL_LH_node_stats, OPENSSL_LH_node_usage_stats, OPENSSL_LH_stats_bio, OPENSSL_LH_node_stats_bio, OPENSSL_LH_node_usage_stats_bio โ€” LHASH statistics. thatโ€™s the whole squad ๐Ÿ’–

โœจ SYNOPSIS โœจ

First, the include โ€” iconic behavior only:

        #include <openssl/lhash.h>

Now the lore: these functions have been deprecated since OpenSSL 3.1, and you can hide them entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):

        void OPENSSL_LH_node_stats(LHASH *table, FILE *out);
        void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out);

        void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out);
        void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out);

        void OPENSSL_LH_stats(LHASH *table, FILE *out);
        void OPENSSL_LH_stats_bio(LHASH *table, BIO *out);

๐Ÿ’… DESCRIPTION ๐Ÿ’…

The LHASH structure records statistics about most aspects of accessing the hash table. yes, itโ€™s keeping receipts ๐Ÿ“‹.

  • OPENSSL_LH_stats() โ€” prints out statistics on the size of the hash table and how many entries are in it. For historical reasons, this function also outputs a number of additional statistics, but the tracking of these statistics is no longer supported and these statistics are always reported as zero. so those extra numbers are giving ghost town ๐Ÿ‘ป
  • OPENSSL_LH_node_stats() โ€” prints the number of entries for each 'bucket' in the hash table.
  • OPENSSL_LH_node_usage_stats() โ€” prints out a short summary of the state of the hash table. It prints the 'load' and the 'actual load'. The load is the average number of data items per 'bucket' in the hash table. The 'actual load' is the average number of items per 'bucket', but only for buckets which contain entries. So the 'actual load' is the average number of searches that will need to find an item in the hash table, while the 'load' is the average number that will be done to record a miss. thatโ€™s the math bestie, iykyk ๐Ÿงฎ
  • OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and OPENSSL_LH_node_usage_stats_bio() โ€” same as the above, except that the output goes to a BIO. slay ๐Ÿ’…

Also: these functions are deprecated and should no longer be used. periodt.

๐Ÿซถ RETURN VALUES ๐Ÿซถ

These functions do not return values. void and unbothered, bestie. ๐Ÿ’…

๐Ÿ˜ญ NOTE ๐Ÿ˜ญ

These calls should be made under a read lock. Refer to "NOTE" in OPENSSL_LH_COMPFUNC(3) for more details about the locks required when using the LHASH data structure.

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

those are the SEE ALSO refs, no cap โœจ

โญ HISTORY โญ

These functions were deprecated in version 3.1. thatโ€™s the timeline, bestie โณ

Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.

okay thatโ€™s the whole page, bestie โ€” footer tea: OpenSSL 3.5.6, dated 2026-04-07. go be iconic and lock responsibly ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from