LIBRESSL-CRYPTO_SET_MEM_FUNCTIONS(3)
π CRYPTO_SET_MEM_FUNCTIONS(3) π
okay so bestie, this page is from the Library Functions Manual. It's giving legacy compatibility energy, iykyk. π«Ά
πΈ NAME πΈ
CRYPTO_set_mem_functionsCRYPTO_mem_ctrlCRYPTO_mem_leaksCRYPTO_mem_leaks_fpCRYPTO_mem_leaks_cb
all of these are legacy OpenSSL memory allocation control. π
β¨ SYNOPSIS β¨
library βlibcryptoβ #include <openssl/crypto.h>
int
CRYPTO_set_mem_functions(void *(*m)(size_t, const char *, int),
void *(*r)(void *, size_t, const char *, int),
void (*f)(void *, const char *, int));
int
CRYPTO_mem_ctrl(int mode);
int
CRYPTO_mem_leaks(BIO *b);
int
CRYPTO_mem_leaks_fp(FILE *fp);
typedef int *
CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *);
int
CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb);
π¦ DESCRIPTION π¦
bestie, do not use any of the interfaces documented here. They are provided purely for compatibility with legacy application code. That's the whole assignment. π
The way that CRYPTO_set_mem_functions(), CRYPTO_mem_ctrl(), CRYPTO_mem_leaks(), CRYPTO_mem_leaks_fp(), and CRYPTO_mem_leaks_cb() all have no effect? Not me expecting them to do something. π
π RETURN VALUES π
CRYPTO_set_mem_functions()β always returns0. slay, I guess.CRYPTO_mem_ctrl()β always returnsCRYPTO_MEM_CHECK_OFF.CRYPTO_mem_leaks(),CRYPTO_mem_leaks_fp(), andCRYPTO_mem_leaks_cb()β always return-1. fr fr.
π SEE ALSO π
crypto(3)π
π HISTORY π
CRYPTO_mem_ctrl(),CRYPTO_mem_leaks(), andCRYPTO_mem_leaks_fp()first appeared in SSLeay0.6.4.CRYPTO_set_mem_functions()first appeared in SSLeay0.6.5.CRYPTO_mem_leaks_cb()first appeared in SSLeay0.6.6.- All these functions have all been available since OpenBSD
2.4.
okay that's the whole page, bestie π«Ά this one is from Debian, dated June 8, 2025, and it's the CRYPTO_SET_MEM_FUNCTIONS(3) page. periodt. π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms