SSL_LIBRARY_INIT(3ossl)
π NAME π
Okay bestie, welcome to SSL_LIBRARY_INIT(3ossl), the OpenSSL manual page for the old-school βturn on the SSL algorithmsβ ritual: SSL_library_init, plus its alias OpenSSL_add_ssl_algorithms β initialize SSL library by registering algorithms.
β¨ SYNOPSIS β¨
#include <openssl/ssl.h>
int SSL_library_init(void);
int OpenSSL_add_ssl_algorithms(void);
π¦ DESCRIPTION π¦
SSL_library_init() registers the available SSL/TLS ciphers and digests. No cap, thatβs the whole vibe.
OpenSSL_add_ssl_algorithms() is a synonym for SSL_library_init() and is implemented as a macro. Same energy, different name π
.
πΈ NOTES πΈ
SSL_library_init() must be called before any other action takes place. Like, before. Main-character-first behavior only.
SSL_library_init() is not reentrant. So donβt treat it like it can be called all willy-nilly from multiple places at once β it cannot.
β οΈ WARNINGS β οΈ
SSL_library_init() adds ciphers and digests used directly and indirectly by SSL/TLS. So yeah, itβs doing real setup work, not just decorative glitter β¨.
π RETURN VALUES π
SSL_library_init() always returns "1", so it is safe to discard the return value. Iconic behavior, honestly: no suspense, no mystery, just "1" π«Ά.
π₯ SEE ALSO π₯
π HISTORY π
The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). So bestie, this is giving βvintage but still in the docsβ π.
π COPYRIGHT π
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
Signed, sealed, delivered: OpenSSL 3.5.6, dated 2026-04-07 π
β¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms