ERR_LOAD_CRYPTO_STRINGS(3)
okay bestie, welcome to the ERR_LOAD_CRYPTO_STRINGS(3) page from the Library Functions Manual β this one is short but it has deprecated energy all over it, so let's get into it π
β¨ NAME β¨
ERR_load_crypto_strings,ERR_free_strings,SSL_load_error_stringsβ load and free OpenSSL error strings.
π¦ SYNOPSIS π¦
bestie, the synopsis is giving βtwo libraries, three functionsβ and it goes exactly like this:
library βlibcryptoβ #include <openssl/err.h>
void
ERR_load_crypto_strings(void);
void
ERR_free_strings(void);
library βlibsslβ libcrypto
#include <openssl/ssl.h>
void
SSL_load_error_strings(void);
π DESCRIPTION π
Okay so these functions are deprecated β like, do not use them. It is never useful for any application program to call any of them explicitly. The library automatically calls them internally whenever needed. No cap.
ERR_load_crypto_strings()registers the error strings for allcrypto(3)functions.SSL_load_error_strings()does the same, but also registers thessl(3)error strings.- If the error strings were already loaded before, no action occurs β literally nothing happens.
ERR_free_strings()frees all previously loaded error strings.
π₯ SEE ALSO π₯
πΈ HISTORY πΈ
ERR_load_crypto_strings()andSSL_load_error_strings()first appeared in SSLeay 0.4.4.ERR_free_strings()first appeared in SSLeay 0.5.1.- These functions have been available since OpenBSD 2.4.
π BUGS π
bestie, this is the messy part. Even though the error strings are already compiled into the object code of the library as static strings, these functions store them again using dynamically allocated memory on the heap. That may fail if insufficient memory is available, but these functions do not report such errors. Instead, they fail silently, possibly having registered none or only a part of the strings requested.
okay that's the whole page! source/version: Debian; date: June 8, 2025 β mwah π
π¦ 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) 2017 Ingo Schwarze <schwarze@openbsd.org>
- Copyright (c) 2000 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms