.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_POOL_ENABLE_AUTO_ENCRYPTION" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_client_pool_enable_auto_encryption (mongoc_client_pool_t *pool, mongoc_auto_encryption_opts_t* opts, bson_error_t* error); .EE .UNINDENT .UNINDENT .sp Enable automatic client side encryption on a \fI\%mongoc_client_pool_t\fP\&. Requires libmongoc to be built with support for In\-Use Encryption. See \fI\%In\-Use Encryption\fP for instructions to enable In\-Use Encryption in libmongoc. .sp Automatic encryption is an enterprise\-only feature that only applies to operations on a collection. Automatic encryption is not supported for operations on a database or view, and operations that are not bypassed will result in error. To bypass automatic encryption for all operations, bypass automatic encryption with \fI\%mongoc_auto_encryption_opts_set_bypass_auto_encryption()\fP in \fBopts\fP\&. .sp Automatic encryption requires the authenticated user to have the \fI\%listCollections privilege action\fP\&. .sp Enabling automatic encryption reduces the maximum message size and may have a negative performance impact. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBclient\fP: A \fI\%mongoc_client_t\fP\&. .IP \(bu 2 \fBopts\fP: A required \fI\%mongoc_auto_encryption_opts_t\fP\&. .IP \(bu 2 \fBerror\fP: A \fI\%bson_error_t\fP which is set on error. .UNINDENT .SH RETURNS .sp Returns \fBtrue\fP if successful. Returns \fBfalse\fP and sets \fBerror\fP otherwise. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%mongoc_auto_encryption_opts_t\fP .fi .sp .nf \fI\%mongoc_client_enable_auto_encryption()\fP .fi .sp .nf \fI\%In\-Use Encryption\fP for libmongoc .fi .sp .nf The MongoDB Manual for \fI\%Client\-Side Field Level Encryption\fP .fi .sp .nf The MongoDB Manual for \fI\%Queryable Encryption\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .