File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -534,13 +534,17 @@ endif ()
534
534
535
535
# Check if BCryptDeriveKeyPBKDF2 is defined in bcrypt.h
536
536
if (WIN32 AND MONGOC_ENABLE_CRYPTO_CNG )
537
- check_symbol_exists (BCryptDeriveKeyPBKDF2 bcrypt.h HAVE_BCRYPT_PBKDF2 )
537
+ cmake_push_check_state ()
538
+ list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_WIN32_WINNT=0x0601 )
539
+ list (APPEND CMAKE_REQUIRED_LIBRARIES Bcrypt.lib )
540
+ check_symbol_exists (BCryptDeriveKeyPBKDF2 "windows.h;bcrypt.h" HAVE_BCRYPT_PBKDF2 )
541
+ cmake_pop_check_state ()
538
542
endif ()
539
543
540
544
if (HAVE_BCRYPT_PBKDF2 )
541
- set (MONGOC_HAVE_BCRYPT_PBKDF2 1 )
545
+ set (MONGOC_HAVE_BCRYPT_PBKDF2 1 )
542
546
else ()
543
- set (MONGOC_HAVE_BCRYPT_PBKDF2 0 )
547
+ set (MONGOC_HAVE_BCRYPT_PBKDF2 0 )
544
548
endif ()
545
549
546
550
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ struct _mongoc_crypto_t {
54
54
void
55
55
mongoc_crypto_init (mongoc_crypto_t * crypto , mongoc_crypto_hash_algorithm_t algo );
56
56
57
- int
57
+ bool
58
58
mongoc_crypto_pbkdf (mongoc_crypto_t * crypto ,
59
59
const char * password ,
60
60
size_t password_len ,
You can’t perform that action at this time.
0 commit comments