Function mongocrypt_sys::mongocrypt_kms_ctx_feed

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

Feed bytes from the HTTP response.

Feeding more bytes than what has been returned in @ref mongocrypt_kms_ctx_bytes_needed is an error.

@param[in] kms The @ref mongocrypt_kms_ctx_t. @param[in] bytes The bytes to feed. The viewed data is copied. It is valid to destroy @p bytes with @ref mongocrypt_binary_destroy immediately after. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_kms_ctx_status