src/libmongoc/tests/test-mongoc-client-side-encryption.c
/* Convenience helper to check if spawning mongocryptd should be bypassed */
Convenience helper to check if spawning mongocryptd should be bypassed
Convenience helper to check if spawning mongocryptd should be bypassed
static void
_check_bypass (mongoc_auto_encryption_opts_t *opts)
{
   if (test_framework_getenv_bool ("MONGOC_TEST_MONGOCRYPTD_BYPASS_SPAWN")) {
      bson_t *extra;
      extra = BCON_NEW ("mongocryptdBypassSpawn", BCON_BOOL (true));
      mongoc_auto_encryption_opts_set_extra (opts, extra);
      bson_destroy (extra);
   }
}
static void _check_bypass ( mongoc_auto_encryption_opts_t * opts ) { if ( test_framework_getenv_bool ( " " ) ) { bson_t * extra ; extra = BCON_NEW ( " " , BCON_BOOL ( true ) ) ; mongoc_auto_encryption_opts_set_extra ( opts , extra ) ; bson_destroy ( extra ) ; } }
Convenience helper to check if spawning mongocryptd should be bypassed
Convenience helper to check if spawning mongocryptd should be bypassed