This is very helpful when debugging linking issues.
struct dcrypt_settings set = {
.module_dir = ".libs"
};
+ const char *error;
random_init();
- if (!dcrypt_initialize(NULL, &set, NULL)) {
- i_error("No functional dcrypt backend found - skipping tests");
+ if (!dcrypt_initialize(NULL, &set, &error)) {
+ i_error("No functional dcrypt backend found - skipping tests: %s", error);
return 0;
}
struct dcrypt_settings set = {
.module_dir = ".libs"
};
+ const char *error;
- if (!dcrypt_initialize(NULL, &set, NULL)) {
- i_error("No functional dcrypt backend found - skipping tests");
+ if (!dcrypt_initialize(NULL, &set, &error)) {
+ i_error("No functional dcrypt backend found - skipping tests: %s", error);
return 0;
}
random_init();