create key files readable by owner only

This commit is contained in:
acetone committed 2026-09-23 10:48:32 -04:00
1 parent ec928482fa
commit 5b3e4db7f1
7 files changed
+20 -6

No files matched your search

+1 -1
View File
@@ -1549,7 +1549,7 @@ namespace client
memset (keys->pub.data (), 0, keys->pub.size ());
keys->GenerateKeys ();
std::ofstream f1 (path, std::ofstream::binary | std::ofstream::out);
std::ofstream f1 (i2p::fs::CreatePrivateFile (path), std::ofstream::binary | std::ofstream::out);
if (f1)
{
f1.write ((char *)keys->pub.data (), keys->pub.size ());