mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
NegotiateContext: Added constructors taking PreAuthIntegrityCapabilities and EncryptionCapabilities
This commit is contained in:
parent
3cf5fcbe93
commit
fdc8234429
1 changed files with 12 additions and 0 deletions
|
@ -26,6 +26,18 @@ namespace SMBLibrary.SMB2
|
|||
{
|
||||
}
|
||||
|
||||
public NegotiateContext(PreAuthIntegrityCapabilities preAuthIntegrityCapabilities)
|
||||
{
|
||||
ContextType = NegotiateContextType.SMB2_PREAUTH_INTEGRITY_CAPABILITIES;
|
||||
Data = preAuthIntegrityCapabilities.GetBytes();
|
||||
}
|
||||
|
||||
public NegotiateContext(EncryptionCapabilities encryptionCapabilities)
|
||||
{
|
||||
ContextType = NegotiateContextType.SMB2_ENCRYPTION_CAPABILITIES;
|
||||
Data = encryptionCapabilities.GetBytes();
|
||||
}
|
||||
|
||||
public NegotiateContext(byte[] buffer, int offset)
|
||||
{
|
||||
ContextType = (NegotiateContextType)LittleEndianConverter.ToUInt16(buffer, offset + 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue