|
82 | 82 | // Client-side encryption is a new feature in MongoDB 4.2 that allows specific data fields to be encrypted. Using this
|
83 | 83 | // feature requires specifying the "cse" build tag during compilation.
|
84 | 84 | //
|
85 |
| -// Important: This feature is beta. The API for both automatic and explicit encryption/decryption does not have any |
86 |
| -// stability guarantees and backwards-breaking changes may be made before the final release. |
87 |
| -// |
88 | 85 | // Note: Auto encryption is an enterprise-only feature.
|
89 | 86 | //
|
90 |
| -// The libmongocrypt C library is required when using client-side encryption. To install libmongocrypt, do the following: |
| 87 | +// The libmongocrypt C library is required when using client-side encryption. To install libmongocrypt, follow the |
| 88 | +// instructions for your operating system: |
91 | 89 | //
|
92 |
| -// // run the clone command in an empty folder because the compile script will create new directories. |
93 |
| -// git clone https://github.com/mongodb/libmongocrypt |
94 |
| -// ./libmongocrypt/.evergreen/compile.sh |
| 90 | +// 1. Linux: follow the instructions listed at |
| 91 | +// https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-from-distribution-packages to install the correct |
| 92 | +// deb/rpm package. |
95 | 93 | //
|
96 |
| -// // Linux/Darwin: (this requires pkg-config to be installed on the system) |
97 |
| -// Add <installation_dir>/install/libmongocrypt/lib/pkgconfig:<installation_dir>/install/mongo-c-driver/lib/pkgconfig to PKG_CONFIG_PATH. |
98 |
| -// Add <installation_dir>/install/libmongocrypt/lib to LD_LIBRARY_PATH |
| 94 | +// 2. Mac: Follow the instructions listed at https://github.com/mongodb/libmongocrypt#installing-libmongocrypt-on-macos |
| 95 | +// to install packages via brew and compile the libmongocrypt source code. |
99 | 96 | //
|
100 |
| -// // Windows: |
101 |
| -// mkdir -p c:/libmongocrypt/include |
| 97 | +// 3. Windows: |
102 | 98 | // mkdir -p c:/libmongocrypt/bin
|
103 |
| -// cp ./install/libmongocrypt/lib/mongocrypt.dll c:/libmongocrypt/bin |
104 |
| -// cp ./install/libmongocrypt/include/mongocrypt/*.h c:/libmongocrypt/include |
105 |
| -// // add c:/libmongocrypt/bin to PATH |
| 99 | +// mkdir -p c:/libmongocrypt/include |
| 100 | +// |
| 101 | +// // Run the curl command in an empty directory as it will create new directories when unpacked. |
| 102 | +// curl https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt.tar.gz --output libmongocrypt.tar.gz |
| 103 | +// tar -xvzf libmongocrypt.tar.gz |
| 104 | +// |
| 105 | +// cp ./bin/mongocrypt.dll c:/libmongocrypt/bin |
| 106 | +// cp ./include/mongocrypt/*.h c:/libmongocrypt/include |
| 107 | +// export PATH=$PATH:/cygdrive/c/libmongocrypt/bin |
106 | 108 | //
|
107 | 109 | // libmongocrypt communicates with the mongocryptd process for automatic encryption. This process can be started manually
|
108 | 110 | // or auto-spawned by the driver itself. To enable auto-spawning, ensure the process binary is on the PATH. To start it
|
|
0 commit comments