Function mongocrypt_sys::mongocrypt_init
source ยท pub unsafe extern "C" fn mongocrypt_init(
crypt: *mut mongocrypt_t,
) -> bool
Expand description
Initialize new @ref mongocrypt_t object.
Set options before using @ref mongocrypt_setopt_kms_provider_local, @ref mongocrypt_setopt_kms_provider_aws, or @ref mongocrypt_setopt_log_handler.
@param[in] crypt The @ref mongocrypt_t object.
@returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status Failure may occur if previously set options are invalid.