MONGOC_AUTO_EN...VIDER_CALLBACK(3)

πŸ’… MONGOC_AUTO_EN...VIDER_CALLBACK(3) πŸ’…

This is from the libmongoc manual, bestie. 🫢

New in version 1.23.0.

So basically: this sets the user-provided callback that supplies KMS credentials on-demand whenever they’re needed. It’s giving β€œcredentials, but make it on-demand.” ✨

✨ SYNOPSIS ✨

          void
          mongoc_auto_encryption_opts_set_kms_credential_provider_callback(
            mongoc_auto_encryption_opts_t *opts,
            mongoc_kms_credentials_provider_callback_fn fn,
            void *userdata);

πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” the options object you’re updating. That’s the assignment. πŸ’–
  • fn β€” the provider callback to set on the options object. It may be NULL to clear the callback. For the callback-type deets, refer to: mongoc_kms_credentials_provider_callback_fn. πŸ‘€
  • userdata β€” an arbitrary pointer. libmongoc passes it along to the callback function when the callback is called by libmongoc. No extra meaning, just your pointer riding shotgun. 🫢

πŸ‘€ SEE ALSO: πŸ‘€

mongoc_client_encryption_opts_set_kms_credential_provider_callback ()

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that’s the whole page, bestie 🌈 β€” source/version is 2.5.6, and the footer date says Oct 09, 202 (literally, don’t come for me 😭). Stay encrypted, stay iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from