File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,8 @@ if test "$PHP_MONGODB" != "no"; then
390
390
391
391
dnl If compiling without libmongocrypt, use kms_message sources bundled with libmongoc.
392
392
dnl If compiling with libmongocrypt, kms_message bundled with libmongocrypt is used as it is most likely newer.
393
- if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "yes" && "$PHP_MONGODB_SSL" != "no"; then
393
+ if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "yes" && test "$PHP_MONGODB_SSL" != "no"; then
394
+ AC_SUBST ( MONGOC_ENABLE_MONGODB_AWS_AUTH , 1 )
394
395
PHP_MONGODB_ADD_SOURCES([ src/libmongoc/src/kms-message/src/] , $PHP_MONGODB_KMS_MESSAGE_SOURCES, $PHP_MONGODB_BUNDLED_CFLAGS)
395
396
PHP_MONGODB_ADD_INCLUDE([ src/libmongoc/src/kms-message/src/] )
396
397
PHP_MONGODB_ADD_BUILD_DIR([ src/libmongoc/src/kms-message/src/] )
@@ -416,6 +417,8 @@ if test "$PHP_MONGODB" != "no"; then
416
417
fi
417
418
418
419
if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" = "yes"; then
420
+ dnl Since libmongocrypt adds kms-message, we can enable AWS auth in this case
421
+ AC_SUBST ( MONGOC_ENABLE_MONGODB_AWS_AUTH , 1 )
419
422
AC_SUBST ( MONGOCRYPT_ENABLE_TRACE , 1 )
420
423
421
424
dnl Generated with: find src/libmongocrypt/src -maxdepth 1 -name '*.c' -print0 | cut -sz -d / -f 4- | sort -dz | tr '\000' ' '
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ if (PHP_MONGODB != "no") {
213
213
mongoc_opts . MONGOC_ENABLE_CRYPTO_LIBCRYPTO = 1 ;
214
214
mongoc_opts . MONGOC_ENABLE_SSL = 1 ;
215
215
mongoc_opts . MONGOC_ENABLE_CRYPTO = 1 ;
216
+ mongoc_opts . MONGOC_ENABLE_MONGODB_AWS_AUTH = 1 ;
216
217
217
218
ADD_FLAG ( "CFLAGS_MONGODB" , "/D KMS_MSG_STATIC=1 /D KMS_MESSAGE_ENABLE_CRYPTO=1 /D KMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO=1" ) ;
218
219
} else {
You can’t perform that action at this time.
0 commit comments