1MONGOC_CLIENT_ENCRYPTION_GET_KEYM_OBNYG_lOAiCLb_TmC_oLNnIAgEMoNEcT(_3E)NCRYPTION_GET_KEY_BY_ALT_NAME(3)
2
3
4
6 bool
7 mongoc_client_encryption_get_key_by_alt_name (
8 mongoc_client_encryption_t *client_encryption,
9 const char *keyaltname,
10 bson_value_t *key_doc,
11 bson_error_t *error);
12
13 Get a key document in the key vault collection that has the given
14 keyaltname.
15
17 • client_encryption: A mongoc_client_encryption_t.
18
19 • keyaltname: The key alternate name of the key to get.
20
21 • key_doc: Optional. An uninitialized bson_t set to the resulting key
22 document, or an empty document if the key does not exist. Must be
23 freed by bson_value_destroy().
24
25 • error: Optional. bson_error_t.
26
28 Returns true if successful. Returns false and sets error otherwise.
29
30 SEE ALSO:
31 mongoc_client_encryption_t
32
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.25.1 MONNoGvOC0_8C,LI2E0N2T3_ENCRYPTION_GET_KEY_BY_ALT_NAME(3)