MONGOC_CLIENT...SHARED_VERSION(3)

MONGOC_CLIENT...SHARED_VERSION(3) πŸ’…

Okay bestie, welcome to this lil slice of the libmongoc manual ✨ We're talking about getting the loaded crypt_shared version from an explicit encryption object, and it's honestly pretty straightforward.

🌸 SYNOPSIS 🌸

const char*
mongoc_client_encryption_get_crypt_shared_version (mongoc_client_encryption_t const *enc);

This gets you the version string of the crypt_shared that's loaded for the given explicit encryption object. If no crypt_shared library is loaded, the returned pointer will be NULL. No cap. 🫢


πŸŽ€ PARAMETERS πŸŽ€

  • enc β€” a live mongoc_client_encryption_t πŸ‘‘

πŸ’– RETURNS πŸ’–

You get a pointer to a null-terminated character array string designating the version of crypt_shared that was loaded for enc. Iconic. ✨

If no crypt_shared library is loaded, the returned pointer will be NULL β€” that's the vibe check, bestie.

The pointed-to array must not be modified or freed. Like, hands off. πŸ™ˆ The returned pointer is only valid for the lifetime of enc.

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_get_crypt_shared_version() β€” go peek at this one too, iykyk πŸ‘‘

✍️ AUTHOR ✍️

MongoDB, Inc


2009-present, MongoDB, Inc.


Stay hydrated, bestie β€” this page is from libmongoc 2.5.6, dated Oct 09, 2026 πŸ’–πŸŽ€

πŸ“¦ where this page comes from