Implement czechlight authentication
I'm using fgetpwent_r/fgetspent_r for listing users, because all the
other functions aren't thread safe. It also makes it easier to test the
functions.
Change-Id: Ie3fba46d53ada8edf8b39be4f06bf49cef15963e
diff --git a/src/utils/io.h b/src/utils/io.h
index 6d8123a..ec3286b 100644
--- a/src/utils/io.h
+++ b/src/utils/io.h
@@ -16,4 +16,6 @@
std::string readFileString(const std::filesystem::path& path);
int64_t readFileInt64(const std::filesystem::path& path);
std::vector<uint32_t> readFileWords(const std::filesystem::path& path, int valuesCount);
+std::string readFileToString(const std::filesystem::path& path);
+void safeWriteFile(const std::string& filename, const std::string_view& contents);
}