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