Browse Source

SMBServer: Marked methods required for asynchronous operation as internal

Tal Aloni 7 years ago
parent
commit
2698498c8b

+ 1 - 1
SMBLibrary/Server/SMB1/NTTransactHelper.cs

@@ -146,7 +146,7 @@ namespace SMBLibrary.Server.SMB1
             }
         }
 
-        private static List<SMB1Command> GetNTTransactResponse(byte[] responseSetup, byte[] responseParameters, byte[] responseData, int maxBufferSize)
+        internal static List<SMB1Command> GetNTTransactResponse(byte[] responseSetup, byte[] responseParameters, byte[] responseData, int maxBufferSize)
         {
             if (NTTransactResponse.CalculateMessageSize(responseSetup.Length, responseParameters.Length, responseData.Length) <= maxBufferSize)
             {

+ 1 - 1
SMBLibrary/Server/SMBServer.SMB1.cs

@@ -287,7 +287,7 @@ namespace SMBLibrary.Server
             return new ErrorResponse(command.CommandName);
         }
 
-        private static void EnqueueMessage(ConnectionState state, SMB1Message response)
+        internal static void EnqueueMessage(ConnectionState state, SMB1Message response)
         {
             SessionMessagePacket packet = new SessionMessagePacket();
             packet.Trailer = response.GetBytes();

+ 1 - 1
SMBLibrary/Server/SMBServer.SMB2.cs

@@ -201,7 +201,7 @@ namespace SMBLibrary.Server
             return new ErrorResponse(command.CommandName, NTStatus.STATUS_NOT_SUPPORTED);
         }
 
-        private static void EnqueueResponse(ConnectionState state, SMB2Command response)
+        internal static void EnqueueResponse(ConnectionState state, SMB2Command response)
         {
             SessionMessagePacket packet = new SessionMessagePacket();
             packet.Trailer = response.GetBytes();