.\" Man page generated from reStructuredText. . .TH "MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KMS_PROVIDERS" "3" "Jun 04, 2021" "1.17.6" "libmongoc" .SH NAME mongoc_client_encryption_opts_set_kms_providers \- mongoc_client_encryption_opts_set_kms_providers() . .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 .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C void mongoc_client_encryption_opts_set_kms_providers ( mongoc_client_encryption_opts_t *opts, const bson_t *kms_providers); .ft P .fi .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBopts\fP: The \fBmongoc_client_encryption_opts_t\fP .IP \(bu 2 \fBkms_providers\fP: A \fI\%bson_t\fP containing configuration for an external Key Management Service (KMS). .UNINDENT .sp \fBkms_providers\fP is a BSON document containing configuration for each KMS provider. Currently \fBaws\fP or \fBlocal\fP are supported. At least one must be specified. .sp The format for "aws" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C aws: { accessKeyId: , secretAccessKey: } .ft P .fi .UNINDENT .UNINDENT .sp The format for "local" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C local: { key: <96 byte BSON binary of subtype 0> // The master key used to encrypt/decrypt data keys. } .ft P .fi .UNINDENT .UNINDENT .SH SEE ALSO .INDENT 0.0 .IP \(bu 2 \fBmongoc_client_encryption_new()\fP .IP \(bu 2 The guide for Using Client\-Side Field Level Encryption .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .