MONGOC_CLIENT_...SHARED_VERSION(3)

✨ SYNOPSIS ✨

Okay so this is the MONGOC_CLIENT_...SHARED_VERSION(3) page from libmongoc, and we’re folding the manual name in right here like a little name tag. πŸ’Œ

const char *
mongoc_client_get_crypt_shared_version (const mongoc_client_t *client);

This function exists to obtain the version string of the crypt_shared that is loaded for auto-encryption on the given client. If no crypt_shared library is loaded, the returned pointer will be NULL. No cap. 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • client β€” a live mongoc_client_t. Like, alive and kicking, bestie.

πŸ’– RETURNS πŸ’–

A pointer to a null-terminated character array string designating the version of crypt_shared that was loaded for auto-encryption with client.

If no crypt_shared library is loaded, or auto-encryption is not loaded for the given client, the returned pointer will be NULL.

The pointed-to array must not be modified or freed. Do not touch, do not free, do not pass go. The returned pointer is only valid for the lifetime of client. So like, don’t hold onto it after client dips. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_encryption_get_crypt_shared_version()

🫢 AUTHOR 🫢

MongoDB, Inc

2009-present, MongoDB, Inc.


Footer sign-off, bestie: this is from libmongoc, version 2.5.6, dated Oct 09, 2024. Mwah, slay, bye. πŸ’…βœ¨

πŸ“¦ where this page comes from