|
4 | 4 | using System.Net;
|
5 | 5 | using System.Net.Sockets;
|
6 | 6 | using System.Security.Cryptography;
|
7 |
| -using System.Text; |
8 | 7 | using Microsoft.VisualStudio.TestTools.UnitTesting;
|
9 | 8 | using Moq;
|
10 | 9 | using Renci.SshNet.Common;
|
@@ -108,18 +107,18 @@ protected virtual void SetupData()
|
108 | 107 | // having established the connection instead of when the client has been identified
|
109 | 108 |
|
110 | 109 | var keyExchangeInitMessage = new KeyExchangeInitMessage
|
111 |
| - { |
112 |
| - CompressionAlgorithmsClientToServer = new string[0], |
113 |
| - CompressionAlgorithmsServerToClient = new string[0], |
114 |
| - EncryptionAlgorithmsClientToServer = new string[0], |
115 |
| - EncryptionAlgorithmsServerToClient = new string[0], |
116 |
| - KeyExchangeAlgorithms = new[] { _keyExchangeAlgorithm }, |
117 |
| - LanguagesClientToServer = new string[0], |
118 |
| - LanguagesServerToClient = new string[0], |
119 |
| - MacAlgorithmsClientToServer = new string[0], |
120 |
| - MacAlgorithmsServerToClient = new string[0], |
121 |
| - ServerHostKeyAlgorithms = new string[0] |
122 |
| - }; |
| 110 | + { |
| 111 | + CompressionAlgorithmsClientToServer = new string[0], |
| 112 | + CompressionAlgorithmsServerToClient = new string[0], |
| 113 | + EncryptionAlgorithmsClientToServer = new string[0], |
| 114 | + EncryptionAlgorithmsServerToClient = new string[0], |
| 115 | + KeyExchangeAlgorithms = new[] { _keyExchangeAlgorithm }, |
| 116 | + LanguagesClientToServer = new string[0], |
| 117 | + LanguagesServerToClient = new string[0], |
| 118 | + MacAlgorithmsClientToServer = new string[0], |
| 119 | + MacAlgorithmsServerToClient = new string[0], |
| 120 | + ServerHostKeyAlgorithms = new string[0] |
| 121 | + }; |
123 | 122 | var keyExchangeInit = keyExchangeInitMessage.GetPacket(8, null);
|
124 | 123 | ServerSocket.Send(keyExchangeInit, 4, keyExchangeInit.Length - 4, SocketFlags.None);
|
125 | 124 | };
|
|
0 commit comments