From cef7a6dc2967e015c6749252cb5dc5b582dbe84e Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sat, 4 Mar 2017 11:13:11 +0200 Subject: [PATCH] Moved SMBDialect to a separate class --- SMBLibrary/SMBLibrary.csproj | 1 + SMBLibrary/Server/ConnectionState/ConnectionState.cs | 8 -------- SMBLibrary/Server/Enums/SMBDialect.cs | 11 +++++++++++ 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 SMBLibrary/Server/Enums/SMBDialect.cs diff --git a/SMBLibrary/SMBLibrary.csproj b/SMBLibrary/SMBLibrary.csproj index b29aa68..584e04c 100644 --- a/SMBLibrary/SMBLibrary.csproj +++ b/SMBLibrary/SMBLibrary.csproj @@ -191,6 +191,7 @@ + diff --git a/SMBLibrary/Server/ConnectionState/ConnectionState.cs b/SMBLibrary/Server/ConnectionState/ConnectionState.cs index 9f6ab8e..a6a65bd 100644 --- a/SMBLibrary/Server/ConnectionState/ConnectionState.cs +++ b/SMBLibrary/Server/ConnectionState/ConnectionState.cs @@ -15,14 +15,6 @@ namespace SMBLibrary.Server { public delegate void LogDelegate(Severity severity, string message); - public enum SMBDialect - { - NotSet, - NTLM012, // NT LM 0.12 - SMB202, // SMB 2.0.2 - SMB210, // SMB 2.1 - } - public class ConnectionState { public Socket ClientSocket; diff --git a/SMBLibrary/Server/Enums/SMBDialect.cs b/SMBLibrary/Server/Enums/SMBDialect.cs new file mode 100644 index 0000000..b15a469 --- /dev/null +++ b/SMBLibrary/Server/Enums/SMBDialect.cs @@ -0,0 +1,11 @@ + +namespace SMBLibrary.Server +{ + public enum SMBDialect + { + NotSet, + NTLM012, // NT LM 0.12 + SMB202, // SMB 2.0.2 + SMB210, // SMB 2.1 + } +}