Function mongocrypt_sys::mongocrypt_setopt_kms_provider_aws

source ยท
pub unsafe extern "C" fn mongocrypt_setopt_kms_provider_aws(
    crypt: *mut mongocrypt_t,
    aws_access_key_id: *const c_char,
    aws_access_key_id_len: i32,
    aws_secret_access_key: *const c_char,
    aws_secret_access_key_len: i32,
) -> bool
Expand description

Configure an AWS KMS provider on the @ref mongocrypt_t object.

This has been superseded by the more flexible: @ref mongocrypt_setopt_kms_providers

@param[in] crypt The @ref mongocrypt_t object. @param[in] aws_access_key_id The AWS access key ID used to generate KMS messages. @param[in] aws_access_key_id_len The string length (in bytes) of @p aws_access_key_id. Pass -1 to determine the string length with strlen (must be NULL terminated). @param[in] aws_secret_access_key The AWS secret access key used to generate KMS messages. @param[in] aws_secret_access_key_len The string length (in bytes) of @p aws_secret_access_key. Pass -1 to determine the string length with strlen (must be NULL terminated). @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