[MONGOCRYPT-381] Expose version of csfle shared library Created: 10/Feb/22  Updated: 27/May/22  Resolved: 07/Mar/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Unknown
Reporter: Kevin Albertson Assignee: Colby Pike
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63680 CSFLE: implement mongo_csfle_v1_get_v... Closed
Epic Link: FLE 1.0 Shared Library
Server Compat: 5.3, 6.0

 Description   

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);



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'vector-of-bool', 'email': 'vectorofbool@gmail.com', 'username': 'vector-of-bool'}

Message: MONGOCRYPT-381 Public APIs to obtain the version of the loaded CSFLE dynamic library (#255)

  • Add custom targets to copy-in a CSFLE library for testing
Generated at Thu Feb 08 09:08:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.