ERR_load_crypto_strings.3ssl man page

ERR_load_crypto_strings, SSL_load_error_strings, ERR_free_strings — load and free error strings



 #include <openssl/err.h>

 #if OPENSSL_API_COMPAT < 0x10100000L
 void ERR_load_crypto_strings(void);
 void ERR_free_strings(void);

 #include <openssl/ssl.h>

 #if OPENSSL_API_COMPAT < 0x10100000L
 void SSL_load_error_strings(void);


All of the following functions are deprecated from OpenSSL 1.1.0. No explicit initialisation or de-initialisation is necessary. See OPENSSL_init_crypto(3) and OPENSSL_init_ssl(3).

ERR_load_crypto_strings() registers the error strings for all libcrypto functions. SSL_load_error_strings() does the same, but also registers the libssl error strings.

In versions of OpenSSL prior to 1.1.0 ERR_free_strings() freed all previously loaded error strings. However from OpenSSL 1.1.0 it does nothing.

Return Values

ERR_load_crypto_strings(), SSL_load_error_strings() and ERR_free_strings() return no values.

See Also



The ERR_load_crypto_strings(), SSL_load_error_strings(), and ERR_free_strings() functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_crypto() and OPENSSL_init_ssl().

Referenced By


2018-03-27 1.1.0h OpenSSL