fs_class_register(&fs_class_posix);
fs_class_register(&fs_class_crypt);
- if (fs_init_from_string("posix", &test_fs_set, &fs, &error) < 0)
+ if (fs_init("posix", "", &test_fs_set, &fs, &error) < 0)
i_fatal("fs_init(posix) failed: %s", error);
/* write keys to disk */
file = fs_file_init(fs, "test_public_key.pem", FS_OPEN_MODE_CREATE);
const char *error;
struct fs *fs;
- if (fs_init_from_string("crypt:public_key_path=test_public_key.pem:"
- "private_key_path=test_private_key.pem:posix",
- &test_fs_set, &fs, &error) < 0)
+ if (fs_init("crypt", "public_key_path=test_public_key.pem:"
+ "private_key_path=test_private_key.pem:posix",
+ &test_fs_set, &fs, &error) < 0)
i_fatal("fs_init(crypt:posix) failed: %s", error);
i_unlink_if_exists("test_file");
const char *error;
struct fs *fs;
- if (fs_init_from_string("crypt:public_key_path=test_public_key.pem:"
- "private_key_path=test_private_key.pem:posix",
- &test_fs_set, &fs, &error) < 0)
+ if (fs_init("crypt", "public_key_path=test_public_key.pem:"
+ "private_key_path=test_private_key.pem:posix",
+ &test_fs_set, &fs, &error) < 0)
i_fatal("fs_init(crypt:posix) failed: %s", error);
i_unlink_if_exists("test_file");
const char *error;
struct fs *fs;
- if (fs_init_from_string("crypt:public_key_path=:"
- "private_key_path=test_private_key.pem:"
- "maybe:posix",
- &test_fs_set, &fs, &error) < 0)
+ if (fs_init("crypt", "public_key_path=:"
+ "private_key_path=test_private_key.pem:"
+ "maybe:posix",
+ &test_fs_set, &fs, &error) < 0)
i_fatal("fs_init(crypt:posix) failed: %s", error);
i_unlink_if_exists("test_file");
fs_file_deinit(&file);
fs_deinit(&fs);
- if (fs_init_from_string("crypt:public_key_path=test_public_key.pem:"
- "private_key_path=test_private_key.pem:"
- "maybe:posix",
- &test_fs_set, &fs, &error) < 0)
+ if (fs_init("crypt", "public_key_path=test_public_key.pem:"
+ "private_key_path=test_private_key.pem:"
+ "maybe:posix",
+ &test_fs_set, &fs, &error) < 0)
i_fatal("fs_init(crypt:posix) failed: %s", error);
i_unlink_if_exists("test_file");