Scroll to navigation

MONGOC_AUTO_ENCRYPTION_OPTS_SET_KEY_VAULT_NAMESPACE(3) libmongoc MONGOC_AUTO_ENCRYPTION_OPTS_SET_KEY_VAULT_NAMESPACE(3)

SYNOPSIS

void
mongoc_auto_encryption_opts_set_keyvault_namespace (

mongoc_auto_encryption_opts_t *opts, const char *db, const char *coll);


Set the database and collection name of the key vault. The key vault is the specially designated collection containing encrypted data keys for In-Use Encryption <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/in-use-encryption/>.

PARAMETERS

  • opts: The mongoc_auto_encryption_opts_t <>
  • db: A const char * representing the database name of the key vault collection.
  • coll: A const char * representing the collection name of the key vault collection.

See also:

mongoc_client_enable_auto_encryption() <>

In-Use Encryption <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/in-use-encryption/>



Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

December 11, 2025 2.2.1