| 1 | //Copyright 2013 Thomson Reuters Global Resources. BSD License please see License file for more information |
| 2 | |
| 3 | package ntlm |
| 4 | |
| 5 | type NegotiateMessage struct { |
| 6 | // All bytes of the message |
| 7 | Bytes []byte |
| 8 | |
| 9 | // sig - 8 bytes |
| 10 | Signature []byte |
| 11 | // message type - 4 bytes |
| 12 | MessageType uint32 |
| 13 | // negotiate flags - 4bytes |
| 14 | NegotiateFlags uint32 |
| 15 | // If the NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED flag is not set in NegotiateFlags, |
| 16 | // indicating that no DomainName is supplied in Payload - then this should have Len 0 / MaxLen 0 |
| 17 | // this contains a domain name |
| 18 | DomainNameFields *PayloadStruct |
| 19 | // If the NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED flag is not set in NegotiateFlags, |
| 20 | // indicating that no WorkstationName is supplied in Payload - then this should have Len 0 / MaxLen 0 |
| 21 | WorkstationFields *PayloadStruct |
| 22 | // version - 8 bytes |
| 23 | Version *VersionStruct |
| 24 | // payload - variable |
| 25 | Payload []byte |
| 26 | PayloadOffset int |
| 27 | } |