mongoc_auto_encryption_opts_set_encrypted_fields_map(3)

mongoc_auto_encryption_opts_set_encrypted_fields_map3

Usage

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

Added in version 1.22.0.

Parameters

•

opts: The mongoc_auto_encryption_opts_t

•

encrypted_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: Queryable Encryption. See mongoc_auto_encryption_opts_set_schema_map() instead.

SEE ALSO:

mongoc_client_enable_auto_encryption()
In-Use Encryption

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.