Clarify encrypted output cleanup contract on filesystem errors
This commit is contained in:
1 parent
1227027c2f
commit
936bacbe4b
1 file changed
+2
-1
@@ -13,7 +13,8 @@ extern "C" {
|
||||
/* source/target — UTF-8 пути разных файлов; target отсутствует либо regular без конечной ссылки.
|
||||
* output заранее обнулён и имеет стабильный адрес до publish/discard; активный output отклоняется без очистки.
|
||||
* 0 — output содержит закрытый проверенный temp рядом с target, target ещё не изменён.
|
||||
* -1 — ошибка; собственный temp удалён, source/target сохранены. Ключ32 байта, UUID16, author!=0.
|
||||
* -1 — ошибка; source/target сохранены, собственный temp передан discard (ошибки удаления логируются).
|
||||
* Ключ — 32 байта, UUID — 16, author!=0.
|
||||
* Пути и файлы не подменяются во время вызова; публикация повторно проверяет их идентичность. */
|
||||
int encrypted_file_write(const char* source, const char* target, struct file_io_temp* output, const uint8_t key[32],
|
||||
uint64_t author, const uint8_t id[16], const struct attachment_info* info, const char* type);
|
||||
|
||||
Reference in new issue
Block a user