Detect nonstandard hash algo and stop folder (ref #2314)

This commit is contained in:
Jakob Borg
2016-01-01 20:11:12 +01:00
parent 7c47eff112
commit 0db80710aa
4 changed files with 133 additions and 6 deletions

View File

@@ -66,6 +66,13 @@ const (
FlagFolderReadOnly uint32 = 1 << 0
FlagFolderIgnorePerms = 1 << 1
FlagFolderIgnoreDelete = 1 << 2
// The folder hash algorithm IDs, to be put in the flags field by shifting
// left FolderHashShiftBits
FolderHashSHA256 = 0
// ... 1 through 15 currently reserved
FolderHashMask = 15
FolderHashShiftBits = 3
)
// ClusterConfigMessage.Folders.Devices flags