File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ if (PHP_MONGODB != "no") {
224
224
WARNING ( "mongodb libsasl support not enabled, libs not found" ) ;
225
225
}
226
226
227
- if ( PHP_CLIENT_SIDE_ENCRYPTION != "no" ) {
227
+ if ( PHP_CLIENT_SIDE_ENCRYPTION != "no" && mongoc_ssl_found ) {
228
228
mongoc_opts . MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION = 1 ;
229
229
230
230
PHP_MONGODB_CFLAGS += "\
@@ -254,10 +254,8 @@ if (PHP_MONGODB != "no") {
254
254
ADD_SOURCES ( configure_module_dirname + "/src/libmongocrypt/src" , PHP_MONGODB_MONGOCRYPT_SOURCES , "mongodb" ) ;
255
255
ADD_SOURCES ( configure_module_dirname + "/src/libmongocrypt/kms-message/src" , PHP_MONGODB_MONGOCRYPT_KMS_MESSAGE_SOURCES , "mongodb" ) ;
256
256
257
- if ( mongoc_ssl_found ) {
258
- mongoc_opts . MONGOCRYPT_ENABLE_CRYPTO = 1 ;
259
- mongoc_opts . MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO = 1 ;
260
- }
257
+ mongoc_opts . MONGOCRYPT_ENABLE_CRYPTO = 1 ;
258
+ mongoc_opts . MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO = 1 ;
261
259
262
260
mongodb_generate_header (
263
261
configure_module_dirname + "/src/libmongocrypt/src/mongocrypt-config.h.in" ,
You can’t perform that action at this time.
0 commit comments