MONGOC_CLIENT_...YPTION_DECRYPT(3)

πŸ’… MONGOC_CLIENT_...YPTION_DECRYPT(3)

okay so bestie, this is the MONGOC_CLIENT_...YPTION_DECRYPT(3) page from the libmongoc manual. Yes, the title is serving ellipsis realness β€” we are not fixing it, we are respecting the lore. πŸ’–

✨ SYNOPSIS ✨

bool
mongoc_client_encryption_decrypt (mongoc_client_encryption_t *client_encryption,
                                  const bson_value_t *ciphertext,
                                  bson_value_t *value,
                                  bson_error_t *error);

This function performs explicit decryption. No cap. πŸ”₯

The value is always initialized (even on failure). The caller must call bson_value_destroy() to free it. Do not skip this, bestie β€” that's your cleanup era. πŸ’…


πŸ’– PARAMETERS πŸ’–

  • client_encryption β€” A mongoc_client_encryption_t.
  • ciphertext β€” The ciphertext (a BSON binary with subtype 6) to decrypt. 🫢
  • value β€” A bson_value_t for the resulting decrypted value.
  • error β€” A bson_error_t set on failure.

πŸ¦‹ RETURNS πŸ¦‹

Returns true if successful. Returns false and sets error otherwise. That's the whole vibe check. ✨

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_enable_auto_encryption()
  • mongoc_client_encryption_encrypt()

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc

2009-present, MongoDB, Inc.


okay bestie, that's the whole page β€” from libmongoc version 2.5.6, dated Oct 09, 202 in the footer (yes, the date is literally giving "squished by the terminal", but that's what the page says 😭). Slay, decrypt responsibly, and remember: bson_value_destroy() is self-care. πŸ’œ

πŸ“¦ where this page comes from