1MONGOC_CLIENT_DECRYPTION_DECRYPT(3)libmongocMONGOC_CLIENT_DECRYPTION_DECRYPT(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_client_encryption_decrypt (mongoc_client_encryption_t *client_encryption,
8                                            const bson_value_t *ciphertext,
9                                            bson_value_t *value,
10                                            bson_error_t *error);
11
12       Performs explicit decryption.
13
14       value  is  always  initialized  (even  on  failure).  Caller  must call
15       bson_value_destroy() to free.
16

PARAMETERS

18client_encryption: A mongoc_client_encryption_t
19
20ciphertext: The ciphertext (a BSON binary with subtype 6) to decrypt.
21
22value: A bson_value_t for the resulting decrypted value.
23
24error: A bson_error_t set on failure.
25

RETURNS

27       Returns true if successful. Returns false and sets error otherwise.
28
29       SEE ALSO:
30          mongoc_client_enable_auto_encryption()
31
32          mongoc_client_encryption_encrypt()
33
34

AUTHOR

36       MongoDB, Inc
37
39       2017-present, MongoDB, Inc
40
41
42
43
441.25.1                           Nov 08, 202M3ONGOC_CLIENT_DECRYPTION_DECRYPT(3)
Impressum