SSL_LIBRARY_INIT(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’– 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 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