MONGOC_AUTO_E...OPTS_SET_EXTRA(3)
β¨ MONGOC_AUTO_E...OPTS_SET_EXTRA β¨
Ok so bestie, welcome to libmongoc's mongoc_auto_encryption_opts_set_extra(3) page π
this is the one where you get to hand the driver a little bag of extra settings for auto-encryption, and honestly? it's giving "let me configure the vibes" π
πΈ SYNOPSIS πΈ
void
mongoc_auto_encryption_opts_set_extra (mongoc_auto_encryption_opts_t *opts,
const bson_t *extra);
π¦ PARAMETERS π¦
optsβ themongoc_auto_encryption_opts_tin question π«Ά like, the options object you're decorating.extraβ abson_tof additional options. the little extra-sauce bag β¨
extra is a bson_t containing any of the following optional fields β no cap, all of these are optional π
mongocryptdURIβ set it to a URI to connect to themongocryptdprocess. default is"mongodb://localhost:27020"π§mongocryptdBypassSpawnβ set totrueto prevent the driver from spawning themongocryptdprocess. default behavior is to spawn, so like, by default it does spawn πmongocryptdSpawnPathβ set to a path (with a trailing slash, don't forget the slash bestie) to search formongocryptd. defaults to an empty string and uses default system paths πmongocryptdSpawnArgsβ set to an array of string arguments to pass tomongocryptdwhen spawning. defaults to[ "--idleShutdownTimeoutSecs=60" ]βcryptSharedLibPathβ set a filepath string referring to acrypt_sharedlibrary file. unset by default π- if not set (the default),
libmongocryptwill attempt to loadcrypt_sharedusing the host system's default dynamic-library-search system π - if set, the given path should identify the
crypt_shareddynamic library file itself, not the directory that contains it. like, the file, not the folder, ok? π― - if the given path is a relative path and the first path component is
$ORIGIN, the$ORIGINcomponent will be replaced with the absolute path to the directory containing thelibmongocryptlibrary in use by the application β¨
- if not set (the default),
NOTE: no other RPATH/RUNPATH-style substitutions are available. that's it, that's the whole substitution menu π
- if the given path is a relative path, the path will be resolved relative to the working directory of the operating system process π
- if this option is set and
libmongocryptfails to loadcrypt_sharedfrom the given filepath,libmongocryptwill fail to initialize and will not attempt to search forcrypt_sharedin any other locations. like, it's not gonna go looking elsewhere, periodt π
cryptSharedLibRequiredβ if set totrue, andlibmongocryptfails to load acrypt_sharedlibrary, initialization of auto-encryption will fail immediately and will not attempt to spawnmongocryptdπ₯
if set to false (the default), cryptSharedLibPath is not set, and libmongocrypt fails to load crypt_shared, then libmongocrypt will proceed without crypt_shared and fall back to using mongocryptd π
π SEE ALSO π
mongoc_client_enable_auto_encryption()- In-Use Encryption
- MongoDB Manual documentation for
crypt_shared: Automatic Encryption Shared Library - MongoDB Manual documentation for
mongocryptd: Install and Configure mongocryptd
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie π«Ά written by MongoDB, Inc, version 2.5.6, dated Oct 09, 2026 β go forth and configure your auto-encryption extras, you absolute icon π
β¨
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms