mongoc_auto_encryption_opts_new - Man Page

Synopsis

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:

Caller may set optionally set the following:

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

Returns

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

See also:

mongoc_auto_encryption_opts_destroy() <>
mongoc_client_enable_auto_encryption() <>
In-Use Encryption <https://www.mongodb.com/docs/languages/c/c-driver/current/security/in-use-encryption>

Author

MongoDB, Inc

Info

Oct 09, 2026 2.5.6 libmongoc