mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 13:43:16 -04:00
Bumps [github.com/go-ldap/ldap/v3](https://github.com/go-ldap/ldap) from 3.4.12 to 3.4.13. - [Release notes](https://github.com/go-ldap/ldap/releases) - [Commits](https://github.com/go-ldap/ldap/compare/v3.4.12...v3.4.13) --- updated-dependencies: - dependency-name: github.com/go-ldap/ldap/v3 dependency-version: 3.4.13 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
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}
|
|
}
|