Skip to content

Commit c2e66c4

Browse files
authored
MONGOCRYPT-865 document search behavior of $SYSTEM (#1125)
document search behavior of `$SYSTEM`
1 parent fd47dca commit c2e66c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mongocrypt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ bool mongocrypt_setopt_encrypted_field_config_map(mongocrypt_t *crypt, mongocryp
435435
* the path string is literal "$SYSTEM", then libmongocrypt will defer to the
436436
* system's library resolution mechanism to find the crypt_shared library.
437437
*
438+
* @warning Use of "$SYSTEM" will search system directories for the
439+
* mongo_crypt_v1.(dll,so,dylib) following the search behavior of LoadLibrary
440+
* on Windows and dlopen on Unix. Ensure secure deployment of the library.
441+
*
438442
* @note If no crypt_shared dynamic library is found in any of the directories
439443
* specified by the search paths loaded here, @ref mongocrypt_init() will still
440444
* succeed and continue to operate without crypt_shared.

0 commit comments

Comments
 (0)