ERR_load_crypto_strings(3ssl)

ERR_load_crypto_strings3ssl

Load and free error strings

Usage

The following functions have been deprecated since OpenSSL 1.1.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):

 #include <openssl/err.h>
 void ERR_load_crypto_strings(void);
 void ERR_free_strings(void);
 #include <openssl/ssl.h>
 void SSL_load_error_strings(void);

Overview

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 prior to OpenSSL 1.1.0, ERR_free_strings() releases any resources created by the above functions.

Return values

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

Releases

13 releases since Debian 3.0 (Woody); the text changed 12 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. Arch

History

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() and should not be used.

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.