OPENSSL_LOAD_BUILTIN_MODULES(3SSL)

πŸ’– OPENSSL_LOAD_BUILTIN_MODULES πŸ’–

okay bestie, so this is page 3SSL from the OpenSSL manuals, and it's about two little functions that get the standard config modules loaded up. tiny page, huge main character energy, let's go πŸŽ€


✨ NAME ✨

OPENSSL_load_builtin_modules, ASN1_add_oid_module β€” these two add the standard configuration modules, no cap 🌸


✨ SYNOPSIS ✨

#include <openssl/conf.h>

void OPENSSL_load_builtin_modules(void);
void ASN1_add_oid_module(void);

✨ DESCRIPTION ✨

So OPENSSL_load_builtin_modules() is the girl who does it all πŸ’… she takes all the standard OpenSSL configuration modules and adds them to the internal list. After that, the OpenSSL configuration code can actually use them. like, she introduced everybody at the party and now they're all mingling ✨

Then there's ASN1_add_oid_module() β€” she's the lowkey one, she adds just the ASN1 OBJECT module. one module. that's her whole job. iconic for it honestly πŸ¦‹


✨ NOTES ✨

  • If you call the simple configuration function OPENSSL_config(), then OPENSSL_load_builtin_modules() gets called automatically. she just shows up, uninvited but welcome 🫢
  • But if your application uses the configuration functions directly, then no one's doing it for you, bestie β€” you have to call OPENSSL_load_builtin_modules() yourself, and you have to do it before any other configuration code. like, before. not after. before. ⭐
  • Also, please call OPENSSL_load_builtin_modules() to load all the configuration modules instead of cherry-picking modules selectively. because if you're out here hand-picking, functionality might be missing from your application if an' when new modules get added (yes, the original has that lil typo, we love her, no we won't fix her 😭). basically: grab the whole set and stop playing games πŸ”₯

✨ RETURN VALUES ✨

None. neither of these functions returns a value. they give nothing back and honestly? they don't have to πŸ’€


✨ SEE ALSO ✨


Copyright 2004-2020 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>.


and that's the whole page, babes πŸ’– this was OpenSSL 4.0.3, dated 2026-09-29 β€” go forth, load those builtin modules, and slay πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from