MCPcopy
hub / github.com/mongodb/node-mongodb-native / getEncryptExtraOptions

Function getEncryptExtraOptions

test/tools/utils.ts:121–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121export function getEncryptExtraOptions(): MongoClientOptions['autoEncryption']['extraOptions'] {
122 if (
123 typeof process.env.CRYPT_SHARED_LIB_PATH === 'string' &&
124 process.env.CRYPT_SHARED_LIB_PATH.length > 0
125 ) {
126 return { cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH };
127 }
128 return {};
129}
130
131export function getTLSOptions(): Pick<
132 MongoClientOptions,

Calls

no outgoing calls

Tested by 4

defineTestFunction · 0.72
deadlockTestFunction · 0.72
defineCorpusTestsFunction · 0.72
newEncryptedClientFunction · 0.72