OPENSSL_LH_STATS(3ossl)
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()andOPENSSL_LH_node_usage_stats_bio()โ same as the above, except that the output goes to aBIO. 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"inOPENSSL_LH_COMPFUNC(3)for more details about the locks required when using theLHASHdata 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 ๐
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 fileLICENSEin 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
- freebsd 15.1: base 15.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms