fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files read-only in Web frontend (#12346) * fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files as read-only in Web frontend * fix: ci after godata bump ocis CI bumped github.com/CiscoM31/godata from v1.0.10 → v1.0.11 as a transitive dependency of the reva bump. The new godata version parses "mail add 10 (invalid operator) as a parse error → 400 instead of unsupported operation → 501. * fix ci: more precise role * fix: bump reva to pull fix merged into reva
25 lines
492 B
Go
25 lines
492 B
Go
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
package ntlmssp
|
|
|
|
import (
|
|
"bytes"
|
|
)
|
|
|
|
var signature = [8]byte{'N', 'T', 'L', 'M', 'S', 'S', 'P', 0}
|
|
|
|
type messageHeader struct {
|
|
Signature [8]byte
|
|
MessageType uint32
|
|
}
|
|
|
|
func (h messageHeader) IsValid() bool {
|
|
return bytes.Equal(h.Signature[:], signature[:]) &&
|
|
h.MessageType > 0 && h.MessageType < 4
|
|
}
|
|
|
|
func newMessageHeader(messageType uint32) messageHeader {
|
|
return messageHeader{signature, messageType}
|
|
}
|