OPENSSL_LOAD_BUILTIN_MODULES(3ossl)

✨ OPENSSL_LOAD_BUILTIN_MODULES ✨

okay bestie, welcome to the OpenSSL manuals, 3ossl edition πŸ’– this one is short and sweet and it's literally just about loading up all the standard config modules so your app isn't out here acting brand new. no cap.


🌸 NAME 🌸

OPENSSL_load_builtin_modules, ASN1_add_oid_module, ENGINE_add_conf_module β€” the girlies that add the standard configuration modules πŸŽ€


✨ SYNOPSIS ✨

#include <openssl/conf.h>

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

πŸ’… DESCRIPTION πŸ’…

so here's the tea, three functions, three jobs 🫢

  • OPENSSL_load_builtin_modules() β€” this one adds ALL the standard OpenSSL configuration modules to the internal list. once they're in there, the OpenSSL configuration code can actually use them. it's giving "set the whole table" energy πŸ‘‘
  • ASN1_add_oid_module() β€” adds just the ASN1 OBJECT module. one and done. a little snack, not the whole meal πŸ“
  • ENGINE_add_conf_module() β€” adds just the ENGINE configuration module. same vibe, different module 🌈

πŸ¦‹ NOTES πŸ¦‹

listen, this part matters, don't skip it 😀

  • if you call the simple configuration function OPENSSL_config(), then OPENSSL_load_builtin_modules() gets called automatically for you. so you don't have to lift a finger πŸ’…
  • but applications that use the configuration functions directly (main character behavior, respect) need to call OPENSSL_load_builtin_modules() themselves, and they gotta do it before any other configuration code. order matters bestie, it's not a suggestion ✨
  • applications should call OPENSSL_load_builtin_modules() to load all the configuration modules instead of adding modules selectively. otherwise, functionality may be missing from the application if an when new modules are added πŸ‘€ (yes, that's the original's exact phrasing, typos and all, we keep it real here)
fr fr: pick the "load everything" option. selectively loading modules is how you end up missing stuff later and crying about it 😭

πŸ’€ RETURN VALUES πŸ’€

none of these functions return a value. that's it. that's the whole section. void and unbothered 🧚


πŸ‘‘ SEE ALSO πŸ‘‘


πŸŽ€ HISTORY πŸŽ€

ENGINE_add_conf_module() was deprecated in OpenSSL 3.0. so if you see it out here, know it's giving vintage πŸ™ˆ


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 3.5.9, dated 2026-09-2, and it ate, no crumbs left. stay configured, stay iconic, periodt βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from