SSL_library_init(3ssl)

SSL_library_init3ssl

Initialize ssl library by registering algorithms

Usage

 #include <openssl/ssl.h>
 int SSL_library_init(void);
 int OpenSSL_add_ssl_algorithms(void);

Overview

SSL_library_init() registers the available SSL/TLS ciphers and digests.

OpenSSL_add_ssl_algorithms() is a synonym for SSL_library_init() and is implemented as a macro.

Notes

SSL_library_init() must be called before any other action takes place. SSL_library_init() is not reentrant.

Warnings

SSL_library_init() adds ciphers and digests used directly and indirectly by SSL/TLS.

Return values

SSL_library_init() always returns "1", so it is safe to discard the return value.

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 SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl().

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