Function mongocrypt_sys::mongocrypt_setopt_kms_provider_local
source ยท pub unsafe extern "C" fn mongocrypt_setopt_kms_provider_local(
crypt: *mut mongocrypt_t,
key: *mut mongocrypt_binary_t,
) -> bool
Expand description
Configure a local KMS provider on the @ref mongocrypt_t object.
This has been superseded by the more flexible: @ref mongocrypt_setopt_kms_providers
@param[in] crypt The @ref mongocrypt_t object. @param[in] key A 96 byte master key used to encrypt and decrypt key vault keys. The viewed data is copied. It is valid to destroy @p key with @ref mongocrypt_binary_destroy immediately after. @pre @ref mongocrypt_init has not been called on @p crypt. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status