Provided by: libmongoc-doc_2.2.0-1_all 

SYNOPSIS
mongoc_client_encryption_t *
mongoc_client_encryption_new (mongoc_client_encryption_opts_t *opts,
bson_error_t *error);
Create a new mongoc_client_encryption_t <>.
PARAMETERS
• opts: A mongoc_client_encryption_opts_t <>.
• error: A bson_error_t <https://www.mongoc.org/libbson/current/bson_error_t.html>.
RETURNS
A new mongoc_client_encryption_t <> that must be freed with mongoc_client_encryption_destroy() <> if
successful. Returns NULL and sets error otherwise.
See also:
mongoc_client_encryption_t <>
mongoc_client_encryption_opts_t <>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.0 Nov 26, 2025 MONGOC_CLIENT_ENCRYPTION_NEW(3)