Provided by: libmongoc-doc_1.24.3-1_all bug

NAME

       mongoc_auto_encryption_opts_set_encrypted_fields_map                                     -
       mongoc_auto_encryption_opts_set_encrypted_fields_map()

SYNOPSIS

          void
          mongoc_auto_encryption_opts_set_encrypted_fields_map (
             mongoc_auto_encryption_opts_t *opts, const bson_t *encrypted_fields_map);

       New in version 1.22.0.

PARAMETERS

opts: The mongoc_auto_encryption_opts_tencrypted_fields_map: A bson_t where keys  are  collection  namespaces  and  values  are
         encrypted fields documents.

       Supplying   an   encrypted_fields_map   provides   more   security   than  relying  on  an
       encryptedFields  obtained  from  the  server.  It  protects  against  a  malicious  server
       advertising a false encryptedFields.

       The  schema  map  does  not  apply  to collections encrypted with: Client-Side Field Level
       Encryption. See mongoc_auto_encryption_opts_set_schema_map() instead.

       SEE ALSO:
          mongoc_client_enable_auto_encryption()

          In-Use Encryption

AUTHOR

       MongoDB, Inc

COPYRIGHT

       2017-present, MongoDB, Inc

1.24.3                                    MONGOC0AUTO2ENCRYPTION_OPTS_SET_ENCRYPTED_FIELDS_MAP(3)