aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/core/GpgCoreTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/core/GpgCoreTest.cpp')
-rw-r--r--src/test/core/GpgCoreTest.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/test/core/GpgCoreTest.cpp b/src/test/core/GpgCoreTest.cpp
index b00e5c0e..1e33536f 100644
--- a/src/test/core/GpgCoreTest.cpp
+++ b/src/test/core/GpgCoreTest.cpp
@@ -35,29 +35,9 @@
namespace GpgFrontend::Test {
-void GpgCoreTest::import_private_keys(const libconfig::Setting& root) {
- if (root.exists("load_keys.private_keys")) {
- auto& private_keys = root.lookup("load_keys.private_keys");
- for (auto& private_key : private_keys) {
- if (private_key.exists("filename")) {
- std::string filename;
- private_key.lookupValue("filename", filename);
- auto data_file_path = data_path_ / filename;
- std::string data = ReadAllDataInFile(data_file_path.string());
- auto secret_key_copy = SecureCreateSharedObject<std::string>(data);
- GpgKeyImportExporter::GetInstance(kGpgFrontendDefaultChannel)
- .ImportKey(secret_key_copy);
- }
- }
- }
-}
-
void GpgCoreTest::TearDown() {}
void GpgCoreTest::SetUp() {
- // libconfig::Config cfg;
- // ASSERT_NO_THROW(cfg.readFile(config_path_.string()));
- // auto& root = cfg.getRoot();
- // import_private_keys(root);
+
}
} // namespace GpgFrontend::Test