mongoc_client_encryption_opts_set_key_vault_namespace
Synopsis
void mongoc_client_encryption_opts_set_keyvault_namespace ( mongoc_client_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_client_encryption_opts_t <>
- db: The database name of the key vault collection.
- coll: The collection name of the key vault collection.
See also:
mongoc_client_encryption_new() <>
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.
Info
Jan 27, 2026 1.30.6 libmongoc