-
Type: New Feature
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Background
It may be helpful to consumers of libmongocrypt to report the version of the csfle library being linked. With mongocryptd, consumers could run mongocryptd --version to determine the version. This is no longer as straightforward.
csfle exposes a function mongo_csfle_v1_get_version_str to return the version.
Scope
Add API to libmongocrypt to report the version of csfle. If csfle was not linked, return NULL. Proposed API:
/** * Returns the version string for the linked csfle shared library for the passed mongocrypt_t. * If csfle was not linked, returns NULL and sets len to 0. * * @param[in] crypt The mongocrypt_t object. * @param[out] len An optional length of the returned string. May be NULL. * @returns a NULL terminated version string for libmongocrypt. */ MONGOCRYPT_EXPORT const char * mongocrypt_csfle_version (mongocrypt_t * crypt, uint32_t *len);
- depends on
-
SERVER-63680 CSFLE: implement mongo_csfle_v1_get_version_str and mongo_csfle_v1_get_version
- Closed