1MONGOC_CLIENT_ENABLE_AUTO_ENCRYPTIONl(i3b)moMnOgNoGcOC_CLIENT_ENABLE_AUTO_ENCRYPTION(3)
2
3
4
6 mongoc_client_enable_auto_encryption - mongoc_client_enable_auto_en‐
7 cryption()
8
10 bool
11 mongoc_client_enable_auto_encryption (mongoc_client_t *client,
12 mongoc_auto_encryption_opts_t* opts,
13 bson_error_t* error);
14
15 Enable automatic In-Use Encryption on a mongoc_client_t. Requires lib‐
16 mongoc to be built with support for In-Use Encryption. See In-Use En‐
17 cryption for instructions to enable In-Use Encryption in libmongoc.
18
19 Automatic encryption is an enterprise only feature that only applies to
20 operations on a collection. Automatic encryption is not supported for
21 operations on a database or view, and operations that are not bypassed
22 will result in error. To bypass automatic encryption for all opera‐
23 tions, bypass automatic encryption with
24 mongoc_auto_encryption_opts_set_bypass_auto_encryption() in opts.
25
26 Automatic encryption requires the authenticated user to have the
27 listCollections privilege action.
28
29 Enabling automatic encryption reduces the maximum message size and may
30 have a negative performance impact.
31
32 Only applies to a single-threaded mongoc_client_t. To use with client
33 pools, see mongoc_client_pool_enable_auto_encryption().
34
36 • client: A mongoc_client_t.
37
38 • opts: A required mongoc_auto_encryption_opts_t.
39
40 • error: A bson_error_t which is set on error.
41
43 True on success. False on error. On error, error is set.
44
45 SEE ALSO:
46 mongoc_auto_encryption_opts_t
47
48 mongoc_client_pool_enable_auto_encryption()
49
50 In-Use Encryption for libmongoc
51
52 The MongoDB Manual for Client-Side Field Level Encryption
53
54 The MongoDB Manual for Queryable Encryption
55
56
58 MongoDB, Inc
59
61 2017-present, MongoDB, Inc
62
63
64
65
661.24.3 Aug 17,MO2N0G2O3C_CLIENT_ENABLE_AUTO_ENCRYPTION(3)