DOKK / manpages / debian 11 / libmongoc-doc / mongoc_auto_encryption_opts_new.3.en
MONGOC_AUTO_ENCRYPTION_OPTS_NEW(3) libmongoc MONGOC_AUTO_ENCRYPTION_OPTS_NEW(3)

mongoc_auto_encryption_opts_new - mongoc_auto_encryption_opts_new()

mongoc_auto_encryption_opts_t *
mongoc_auto_encryption_opts_new (void);


Create a new mongoc_auto_encryption_opts_t.

Caller must set the required options:

  • mongoc_auto_encryption_opts_set_keyvault_namespace()
  • mongoc_auto_encryption_opts_set_kms_providers()

Caller may set optionally set the following:

  • mongoc_auto_encryption_opts_set_keyvault_client()
  • mongoc_auto_encryption_opts_set_schema_map()
  • mongoc_auto_encryption_opts_set_bypass_auto_encryption()
  • mongoc_auto_encryption_opts_set_extra()

This options struct is used to enable auto encryption with mongoc_client_enable_auto_encryption().

A new mongoc_auto_encryption_opts_t, which must be destroyed with mongoc_auto_encryption_opts_destroy().

  • mongoc_auto_encryption_opts_destroy()
  • mongoc_client_enable_auto_encryption()
  • The guide for Using Client-Side Field Level Encryption

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6