pub unsafe extern "C" fn mongocrypt_ctx_setopt_key_encryption_key(
ctx: *mut mongocrypt_ctx_t,
bin: *mut mongocrypt_binary_t,
) -> bool
Expand description
Set key encryption key document for creating a data key or for rewrapping datakeys.
@param[in] ctx The @ref mongocrypt_ctx_t object. @param[in] bin BSON representing the key encryption key document with an additional “provider” field. The following forms are accepted:
AWS
{
provider: “aws”,
region:
Azure
{
provider: “azure”,
keyVaultEndpoint:
GCP
{
provider: “gcp”,
projectId:
Local { provider: “local” }
KMIP
{
provider: “kmip”,
keyId:
@pre @p ctx has not been initialized. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status.