1MONGOC_CLIENT_ENCRYPTION_GET_KEY(3)libmongocMONGOC_CLIENT_ENCRYPTION_GET_KEY(3)
2
3
4
6 bool
7 mongoc_client_encryption_get_key (mongoc_client_encryption_t *client_encryption,
8 const bson_value_t *keyid,
9 bson_t *key_doc,
10 bson_error_t *error);
11
12 Get a key document in the key vault collection that has the given
13 keyid.
14
16 • client_encryption: A mongoc_client_encryption_t.
17
18 • keyid: The UUID (BSON binary subtype 0x04) of the key to get.
19
20 • key_doc: Optional. An uninitialized bson_t set to the resulting key
21 document, or an empty document value if the key does not exist. Must
22 be freed by bson_destroy().
23
24 • error: Optional. bson_error_t.
25
27 Returns true if successful. Returns false and sets error otherwise.
28
29 SEE ALSO:
30 mongoc_client_encryption_t
31
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.25.1 Nov 08, 202M3ONGOC_CLIENT_ENCRYPTION_GET_KEY(3)