pub unsafe extern "C" fn mongocrypt_ctx_setopt_masterkey_aws_endpoint(
ctx: *mut mongocrypt_ctx_t,
endpoint: *const c_char,
endpoint_len: i32,
) -> bool
Expand description
Identify a custom AWS endpoint when creating a data key. This is used internally to construct the correct HTTP request (with the Host header set to this endpoint). This endpoint is persisted in the new data key, and will be returned via @ref mongocrypt_kms_ctx_endpoint.
This has been superseded by the more flexible: @ref mongocrypt_ctx_setopt_key_encryption_key
@param[in] ctx The @ref mongocrypt_ctx_t object. @param[in] endpoint The endpoint. @param[in] endpoint_len The string length of @p endpoint. Pass -1 to determine the string length with strlen (must be NULL terminated). @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status