-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Tools and Replicator
-
None
-
None
-
None
-
None
-
None
-
None
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.
- is depended on by
-
DRIVERS-2718 Enable use of native crypto in libmongocrypt bindings
-
- Implementing
-