Provided by: libmongoc-doc_1.16.1-1build2_all 

NAME
mongoc_client_enable_auto_encryption - mongoc_client_enable_auto_encryption()
SYNOPSIS
bool
mongoc_client_enable_auto_encryption (mongoc_client_t *client,
mongoc_auto_encryption_opts_t* opts,
bson_error_t* error);
Enable automatic client side encryption on a mongoc_client_t. Requires libmongoc to be built with support
for Client-Side Field Level Encryption. See the guide for Using Client-Side Field Level Encryption.
Automatic encryption is an enterprise only feature that only applies to operations on a collection.
Automatic encryption is not supported for operations on a database or view, and operations that are not
bypassed will result in error. To bypass automatic encryption for all operations, bypass automatic
encryption with mongoc_auto_encryption_opts_set_bypass_auto_encryption() in opts.
Automatic encryption requires the authenticated user to have the listCollections privilege action.
Enabling automatic encryption reduces the maximum message size and may have a negative performance
impact.
Only applies to a single-threaded mongoc_client_t. To use with client pools, see
mongoc_client_pool_enable_auto_encryption().
PARAMETERS
• client: A mongoc_client_t.
• opts: A required mongoc_auto_encryption_opts_t.
• error: A bson_error_t which is set on error.
RETURNS
True on success. False on error. On error, error is set.
SEE ALSO
• mongoc_auto_encryption_opts_t
• mongoc_client_pool_enable_auto_encryption()
• The guide for Using Client-Side Field Level Encryption for libmongoc
• The MongoDB Manual for Client-Side Field Level Encryption
AUTHOR
MongoDB, Inc
COPYRIGHT
2017-present, MongoDB, Inc
1.16.1 Mar 03, 2020 MONGOC_CLIENT_ENABLE_AUTO_ENCRYPTION(3)