SSL_LIBRARY_INIT(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’– SSL_LIBRARY_INIT πŸ’–

okay so bestie, welcome to the SSL_LIBRARY_INIT(3ossl) page of the OpenSSL manual 🌸 β€” yes that's the manual name, we're in OpenSSL land, buckle up πŸŽ€


✨ NAME ✨

SSL_library_init, OpenSSL_add_ssl_algorithms β€” these two are the original "light it up" functions: they initialize the SSL library by registering algorithms πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openssl/ssl.h>

int SSL_library_init(void);

int OpenSSL_add_ssl_algorithms(void);

that's it, that's the whole vibe check πŸ”₯


🌈 DESCRIPTION 🌈

SSL_library_init() registers the available SSL/TLS ciphers and digests. that's the whole personality, no cap ✨

OpenSSL_add_ssl_algorithms() is a synonym for SSL_library_init() and is implemented as a macro β€” so like, same energy, different name, iykyk 🫢


πŸ‘‘ NOTES πŸ‘‘

  • SSL_library_init() must be called before any other action takes place. like bestie, before anything else, it's giving main character energy and honestly it deserves it πŸ’€
  • SSL_library_init() is not reentrant. do not try to run it from multiple threads at once, that's not the move πŸ™ˆ

πŸ’€ WARNINGS πŸ’€

SSL_library_init() adds ciphers and digests used directly and indirectly by SSL/TLS β€” so the stuff you call and the stuff that gets called behind your back, all of it, bestie πŸ“


πŸŽ€ RETURN VALUES πŸŽ€

SSL_library_init() always returns "1" β€” literally always, it's that consistent king πŸ‘‘ β€” so it is safe to discard the return value. no need to check it, fr fr πŸ’–


⭐ SEE ALSO ⭐

go read those next, they're iconic too πŸ¦‹


🧚 HISTORY 🧚

the SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). so like... they're still here, but they're old news, ngl 😭


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> 🌸


bestie reminder: this page ships with 3.5.0, dated 2026-09-25 β€” that's the source/version and the date, so you know exactly which manual you're reading πŸ’œ love that for you, mwah πŸ’…βœ¨
πŸ“¦ where this page comes from