diff --git a/tester/tester.cpp b/tester/tester.cpp index 00d976ca4518d2a55f6cceca3aa8caa8dbdd8b8f..19f2b61206f66c5baae20c3ce6c896698b4df5fd 100644 --- a/tester/tester.cpp +++ b/tester/tester.cpp @@ -41,6 +41,10 @@ bool is_filepath_encrypted(const char *filepath) { bool ret = false; + // if encryption openCallback is not set, file cannot be encrypted + if (bctoolbox::VfsEncryption::openCallbackGet() == nullptr) { + return false; + } auto fp = bctbx_file_open(&bctoolbox::bcEncryptedVfs, filepath, "r"); if (fp != NULL) { ret = (bctbx_file_is_encrypted(fp) == TRUE);