Allows testing whether it is possible to call dcrypt functions.
dcrypt_vfs = vfs;
}
+bool dcrypt_is_initialized(void)
+{
+ return dcrypt_vfs != NULL;
+}
+
bool dcrypt_ctx_sym_create(const char *algorithm, enum dcrypt_sym_mode mode,
struct dcrypt_context_symmetric **ctx_r,
const char **error_r)
bool dcrypt_initialize(const char *backend, const struct dcrypt_settings *set,
const char **error_r);
+/**
+ * Returns TRUE if dcrypt has been initialized.
+ */
+bool dcrypt_is_initialized(void);
+
/**
* deinitialize dcrypt.
*