Function mongocrypt_sys::mongocrypt_setopt_kms_providers

source ยท
pub unsafe extern "C" fn mongocrypt_setopt_kms_providers(
    crypt: *mut mongocrypt_t,
    kms_providers: *mut mongocrypt_binary_t,
) -> bool
Expand description

Configure KMS providers with a BSON document.

@param[in] crypt The @ref mongocrypt_t object. @param[in] kms_providers A BSON document mapping the KMS provider names to credentials. Set a KMS provider value to an empty document to supply credentials on-demand with @ref mongocrypt_ctx_provide_kms_providers. @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