Details
-
New Feature
-
Resolution: Fixed
-
Unknown
-
None
-
None
-
None
Description
Summary
Add API to determine if built with native crypto
Example:
/** |
* Returns true if libmongocrypt was built with native crypto support.
|
*
|
* If libmongocrypt was not built with native crypto support, setting crypto
|
* hooks is required.
|
*
|
* @param[in] crypt The @ref mongocrypt_t object.
|
*
|
* @returns True if libmongocrypt was built with native crypto support.
|
*/
|
MONGOCRYPT_EXPORT
|
bool mongocrypt_is_crypto_available(void); |
|
Background & Motivation
Motivated by a proposed solution in DRIVERS-2718:
Add a method in CAPI like `bool isCryptoAvailable()`. Change the wrapper to call that method and only register crypto callbacks if it returns false.
Attachments
Issue Links
- is depended on by
-
DRIVERS-2718 Enable use of native crypto in libmongocrypt bindings
-
- Implementing
-