Detect nonstandard hash algo and stop folder (ref #2314)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user