OPENSSL_LH_STATS(3SSL)
π OPENSSL_LH_STATS β the LHASH statistics page, bestie edition π
okay so this is OPENSSL_LH_STATS(3SSL), and it's all about peeking at the stats that the LHASH structure keeps about itself. it's giving very "check your own receipts" energy. 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 β literally just LHASH statistics, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <openssl/lhash.h>
β οΈ heads up bestie: the following functions have been deprecated since OpenSSL 3.1, and you can hide them entirely by definingOPENSSL_API_COMPATwith a suitable version value β seeopenssl_user_macros(7)for the deets π₯
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 π¦
so the LHASH structure records statistics about most aspects of accessing the hash table. it's literally keeping a diary πβ¨
OPENSSL_LH_stats()prints out statistics on the size of the hash table and how many entries are in it. but ngl, for historical reasons this function also outputs a bunch of additional statistics β and the tracking of those is no longer supported, so they're always reported as zero. zero bestie. nothing. the ghost of stats past πOPENSSL_LH_node_stats()prints the number of entries for each'bucket'in the hash table. every bucket gets its moment π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. iykyk πβ¨
- the
OPENSSL_LH_stats_bio(),OPENSSL_LH_node_stats_bio()andOPENSSL_LH_node_usage_stats_bio()are the same as the above, except that the output goes to aBIOinstead. same energy, different destination π
π¨ and likeβ¦ these functions are deprecated and should no longer be used. periodt. don't do it. i'm telling you as your bestie π
π RETURN VALUES π
these functions do not return values. not a single one. they're void, they're mysterious, they're not giving you anything back π
π 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. don't skip the locking, bestie, it's literally the whole plot π
πΈ SEE ALSO πΈ
β HISTORY β
these functions were deprecated in version 3.1. it's giving "we loved you but you gotta go" π
π 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 file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie β version 4.0.3, dated 2026-09-29, from the OpenSSL crew. go forth, read your locks, and slay π β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms