DOKK / manpages / debian 11 / libmongoc-doc / mongoc_client_encryption_new.3.en
MONGOC_CLIENT_ENCRYPTION_NEW(3) libmongoc MONGOC_CLIENT_ENCRYPTION_NEW(3)

mongoc_client_encryption_new - mongoc_client_encryption_new()

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.

  • opts: A mongoc_client_encryption_opts_t.
  • error: A bson_error_t.

A new mongoc_client_encryption_t that must be freed with mongoc_client_encryption_destroy() if successful. Returns NULL and sets error otherwise.

  • mongoc_client_encryption_t
  • mongoc_client_encryption_opts_t

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6