Function mongocrypt_sys::mongocrypt_kms_ctx_message

source ยท
pub unsafe extern "C" fn mongocrypt_kms_ctx_message(
    kms: *mut mongocrypt_kms_ctx_t,
    msg: *mut mongocrypt_binary_t,
) -> bool
Expand description

Get the HTTP request message for a KMS handle.

The lifetime of @p msg is tied to the lifetime of @p kms. It is valid until @ref mongocrypt_ctx_kms_done is called.

@param[in] kms A @ref mongocrypt_kms_ctx_t. @param[out] msg The HTTP request to send to KMS. The data viewed by @p msg is guaranteed to be valid until the call of @ref mongocrypt_ctx_kms_done of the parent @ref mongocrypt_ctx_t. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_kms_ctx_status